Results 1 to 2 of 2

Thread: How do I click a form button with webbrowser control?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2009
    Posts
    90

    How do I click a form button with webbrowser control?

    I'm trying to automate a web form.

    The button that submits the form's ID is "buttonID".

    I know that my submit variable is matching the element because i've successfully performed submit.innerText

    I need to be able to click on this button... how is it done?

    Code:
    Dim submit As HtmlElement = wb.Document.GetElementById("buttonID")
    submit.InvokeMember("click")

  2. #2
    Frenzied Member stateofidleness's Avatar
    Join Date
    Jan 2009
    Posts
    1,780

    Re: How do I click a form button with webbrowser control?

    maybe try:

    vb Code:
    1. wb.Document.GetElementById("buttonID").InvokeMember("click")

    are there any frames on the page? or more than one form?

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