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")[/CODE] In the same page there are several link with sames elements for example: [COLOR="Red"]1-<a accesskey="2" href="http://www.cristovideos.com/search.php?do=getnew" rel="nofollow">New Page</a>[/COLOR] 2-<a rel="nofollow" href="http://www.cristovideos.com/musica.php?do=newmusic&u=60758">publicar cancion</a> [COLOR="Red"]3-<a href="http://www.adoretube.com" rel="nofollow">adoretube</a>[/COLOR] 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.
.ToList()
List(Of HtmlElement)
list( 1 )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)