Ok I am using this code :
Code:Dim element As HtmlElement = wbForumpm.Document.GetElementsByTagName("a").Cast(Of HtmlElement).Where(Function(el) el.GetAttribute("rel") = "nofollow").Last If element IsNot Nothing Then element.InvokeMember("click")
In the same page there are severals link with sames elements for example:
1-<a accesskey="2" href="http://www.cristovideos.com/search.php?do=getnew" rel="nofollow">New Page</a>
2-<a rel="nofollow" href="http://www.cristovideos.com/musica.php?do=newmusic&u=60758">publicar cancion</a>
3-<a href="http://www.adoretube.com" rel="nofollow">adoretube</a>
Now if I use at the end .Firstordefault the app make click on number one . and If I use .last the app make click on number 3 .
I need to make click in the number 2. Please help me.




Reply With Quote