Hi guys i am facing an annoing problem please i wanna to have your help with it
i have the following html
Code:
<div class="sideInfo">
<a class="getLink" href="info">
<span class="wrap">NEW</span>
</a>
<img class="nation" src="img/xyz.png" alt="NEW">
</div>
i am trying
Code:
var Value = GET.DocumentNode.SelectSingleNode("//a[@class='getLink']").Attributes["href"].Value;
to get the href value but i always get an error and cant get it so please help me to know what is going on
ERROR LOG :
Object reference not set to an instance of an object.