Dec 1, 2017 02:50 PM
(This post was last modified: Dec 1, 2017 03:21 PM by YourAverageTurk.)
Okay i have a winforms application and i am trying to automatically login with my details to paypal on the click of a button,
The correct email:pass is passed to the login form, But when the btnLogin is invoked it throws me a Stack Overflow error and the webpage doesn't load.
Here's my code:
Any help is appreciated thanks ;)
EDIT: I don't believe it's my code as i tried just clicking the login button on the browser non-programatically and it didn't work either :(
The correct email:pass is passed to the login form, But when the btnLogin is invoked it throws me a Stack Overflow error and the webpage doesn't load.
Here's my code:
Code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
WebBrowser1.Document.GetElementById("login_email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("login_password").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("btnLogin").InvokeMember("click")
End SubAny help is appreciated thanks ;)
EDIT: I don't believe it's my code as i tried just clicking the login button on the browser non-programatically and it didn't work either :(

