set userid & password in a webpage

manub22

New member
Joined
Feb 3, 2010
Messages
1
Programming Experience
5-10
I want to set username & password in a website, like gmail.com
and want to submit the page.

This should be done automatically when i click a button on the simple form in VB.net.

I'm using following code, but its not working:

Dim objIE As SHDocVw.InternetExplorer

objIE = CreateObject("InternetExplorer.Application")

objIE.Visible = True

objIE.Navigate("https://www.google.com/accounts/Login")

objIE.Document.All.Item("Email").Value = "my_user_id"
objIE.Document.All.Item("Passwd").Value = "my_pass_word"
objIE.Document.Forms(0).submit()

The page opens, but .net studio gives error on last 3 lines.
 
Back
Top