Results 1 to 2 of 2

Thread: Manipulate/Change/Form Fill data in webpages using the Webbrowser control

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    9

    Manipulate/Change/Form Fill data in webpages using the Webbrowser control

    Hi guys, new guy here and wanted your bighelp. Trying to automate the browser using Webbrowser control unfortunately i'm getting an exception error

    found this thread http://www.vbforums.com/showthread.php?t=416275 but didn't help me because i'm using vb 2003 and again found this link http://www.vbforums.com/showthread.p...ght=webbrowser which help me a little bit. Actually it works but in a single <FORM not multiple form tag in the same page which would be my best guess.

    My question is if i got 2 forms in one document let say

    <form name="srch" id="srch" action="http://xxxx.com" method="get">
    <input type="text" id="q" name="q" class="txt" />
    </form>

    and

    <form action="http://www.xxx.com" method="post" name="theForm" id="theForm">
    <input type="text" name="email" id="email" value="" />
    <input name="password" type="password" id="password" />
    </form>

    MY CODE GOES HERE:

    Dim myPointer = AxWebBrowser1.document
    myPointer.forms.item.elements("q").value = "test" <----this is working
    myPointer.forms.item.elements("email").value = "mypassword" <---ERROR

    i would appreciate a lot your help coz i'm stuck here

    regards

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Manipulate/Change/Form Fill data in webpages using the Webbrowser control

    Moved from VB.NET CodeBank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width