arian4uin Level: Trainee
 Registered: 26-08-2007 Posts: 2
|
Fill Web Form fields Automatically
hello guys
Kindly give your suggestions as i want to make a program which automates the process of login to a web page with pre-specified username and password entries, as soon as i start my system. The following process needs to be automated:
Step 1. Opening of web page with prespecified address, which has username and password field
Step 2. Username and password gets filled
Step 3. Login should be attempted (originally done by clicking the login button present on the webpage )
I tried but its not working there is no response...
***********
Private Sub Form_Load()
On Error Resume Next
Me.Show
tbToolBar.Refresh
Form_Resize
StartingAddress = "http://www.xyz.com/login.aspx"
If Len(StartingAddress) > 0 Then
'try to navigate to the starting address
timTimer.Enabled = True
brwWebBrowser.Navigate StartingAddress
brwWebBrowser.Document.Body.GetElementByID("txtUID").Value = "abc"
brwWebBrowser.Document.Body.GetElementByID("txtPWD").Value = "mno"
brwWebBrowser.Document.Body.GetElementByID("btnLogin").Click
End If
End Sub
***********
Guys I found this propert been discused on some other forms but whn I tried to implement it there is no such propert
brwWebBrowser.Document.Body.GetElementByID("txtUID").Value
is it so that I m missing any library to be include.
Please Guys Help it SOS......
|