Hi all i have html page loaded in to my webbrowser controle that looks like this:
<a href="http://www.somesite.com/recordds.wmt?page=31" title="Go to Next Page" onfocus="if(this.blur)this.blur();"
> next »</a>
I used the following code to click on it but it doesn't work . could you guys tell me what i am doing wrong ? Thanks
orCode:Private Sub Command8_Click() For Each ele In WebBrowser1.Document.getelementsbytagname("a") If ele.innertext = " next »" Then ele.Click Next End Sub
Code:Private Sub Command8_Click() For Each ele In WebBrowser1.Document.getelementsbytagname("a") If ele.innertext = "next" Then ele.Click Next End Sub




Reply With Quote