VB.NET 08 How do i click on this? <li><a href="register.php" rel="nofollow">Register<

simpleonline12

New member
Sep 29, 2009
191
3
0
VB.NET 08 How do i click on this? <li><a href="register.php" rel="nofollow">Register<

<li><a href="register.php" rel="nofollow">Register</a></li>



Driving me nuts..I'm trying to create forum type software but I can't seem to figure out how to programmically click on this link

Any ideas? Tried by id and by tag but there isn't one for this...what is the work around for this?

Thanks
 


Erm.... go to the page www.url.com/register.php ?

I've never programmed in .NET and don't have a huge amount of programming with regards to websites (getting on it now!) but that is just a general URL, not a submit (POST/GET), so I don't see the problem...
 
Erm.... go to the p.

LOL. sexy common sense.

Driving me nuts..I'm trying to create forum type software but I can't seem to figure out how to programmically click on this link

Any ideas? Tried by id and by tag but there isn't one for this...what is the work around for this?

Thanks

The post above mine is the answer.

In vb.net say when you click a button:

sub button1_click () handles button1.click
text1.text = WebBrowser1.Url.AbsoluteUri 'gets the complete URL
webbrowser1.navigate(text1.text & "register.php")
end sub
 
<li><a href="register.php" rel="nofollow">Register</a></li>



Driving me nuts..I'm trying to create forum type software but I can't seem to figure out how to programmically click on this link

Any ideas? Tried by id and by tag but there isn't one for this...what is the work around for this?

Thanks

From memory (been a while since I have done this) you will need to loop through the nodes in the dom until you find the anchor tag with a href that matches the one you want.