Question:

Click a Button On VB6 WebBrowser Automaticly

by  |  earlier

0 LIKES UnLike

 Tags:

   Report

1 ANSWERS


  1. This is my code working:


    WebBrowser1.Document.All.Item("Email").Value = "username here"

    WebBrowser1.Document.All.Item("Passwd").Value = "password here"

    If WebBrowser1.Document.All.Item("Cookie").Checked = True Then WebBrowser1.Document.All.Item("Cookie").Click ''This will check the keep logged in checkbox

    WebBrowser1.Document.body.All.Item("signI").Click '' click the submit button


    Need need to change the  Item("the command you must know comes here.")


    How to find it?


    Easys, download firebug for Firefox browser and then just inspect the eliments on the website password box & username box etc Like this:


    <input type="password" class="gaia le val" size="18" id="Passwd" name="Passwd">


                                                                                              ^^ that is what you need "passwd"


    And


    <input type="text" class="gaia le val" value="" size="18" id="Email" name="Email">


                                                                                                 ^^ And that "Email"


    <input type="checkbox" checked="checked" value="yes" id="Cookie" name="Cookie">


    <input type="submit" value="Aanmelden" id="signI" name="signI" class="gaia le button">


    Hope it works now :)

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.