lincstech
asked on
Navigate to website in internet explorer
Hello,
I'm trying to create a app which I can store my usernames and passwords, and be able to navigate to that website using internet explorer, enter credentials and hit login. So far I've achieved this code however, it's using the webbrowser control in vb.net. can anyone help me with this code to use internet explorer.
I'm trying to create a app which I can store my usernames and passwords, and be able to navigate to that website using internet explorer, enter credentials and hit login. So far I've achieved this code however, it's using the webbrowser control in vb.net. can anyone help me with this code to use internet explorer.
Private Sub Login_Click(sender As Object, e As EventArgs) Handles Login.Click
'Enter credencials
WebBrowser1.Document.GetElementById("userid").SetAttribute("value", Username.Text)
WebBrowser1.Document.GetElementById("pass").SetAttribute("value", Password.Text)
WebBrowser1.Document.GetElementById("sgnBt").InvokeMember("Click")
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Navigate to webiste
WebBrowser1.Navigate("https://signin.ebay.co.uk/ws/eBayISAPI.dll?SignIn")
End Sub
ASKER
Still stuck
The WebBrowser control is IE, AFAIK. Anyway, if the login works, why change anything? Which difference do you see?
On which platform do you want to run your application?
ASKER
vb.net 2013
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.codeproject.com/Articles/9683/Automating-Internet-Explorer
http://sourceforge.net/projects/samie/