borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (RS232/3964R)Next Topic (Moving info to different forms) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Fill Web Form fields Automatically
Poster Message
arian4uin
Level: Trainee

Registered: 26-08-2007
Posts: 2

icon 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......

26-08-2007 at 07:21 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Fill Web Form fields Automatically
Previous Topic (RS232/3964R)Next Topic (Moving info to different forms) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder