Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42215

vb.net WebBrowser control - click on link (it shows an error)

$
0
0
Hi

I have used this code in vb.net to logoin to a webpage

It works fine

Code:

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox2.Text)
        WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox3.Text)

        WebBrowser1.Document.GetElementById("loginbutton").InvokeMember("click")
    End Sub


But now when I am trying to use same way to click on Like at Facebook it shows this error
Attachment 96097

Any idea how I can fixe it?

Many Thanks
Attached Images
 

Viewing all articles
Browse latest Browse all 42215

Trending Articles