Results 1 to 3 of 3

Thread: [RESOLVED] little help neededHi, how can i auto click the submit button from a web page. Coding

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2009
    Posts
    98

    Resolved [RESOLVED] little help neededHi, how can i auto click the submit button from a web page. Coding

    Hi, how can i auto click the submit button from a web page. Coding of the button is ..
    Code:

    Code:

    Code:
    <input type="button" value="Send"  style="width:10em;" onClick="javascript:checkform()">
    Any idea

    The following code is not working for me
    Code:
    Private Sub WebBrowser1_DownloadComplete()
       Set Doc = WebBrowser1.Document
        '~~> Find the "Submit Button"
        For Each GenElmt In Doc.frames.Document.All
            If UCase$(GenElmt.tagName) = "INPUT" Then
                Set InptElmt = GenElmt
                If UCase$(InptElmt.Value) = "Send" Then
                    '~~> Click Button and then exit the loop
                    InptElmt.Click
                    Exit For
                End If
            End If
        Next
    End Sub

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: little help neededHi, how can i auto click the submit button from a web page. Cod

    You just need to do,

    Code:
    webbrowser1.navigate "javascript:checkform()"
    That's assuming you've already naviagted to the page. Also assuming you've filled in the relavent input fields.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2009
    Posts
    98

    Re: [RESOLVED] little help neededHi, how can i auto click the submit button from a we

    Thanks you 1+ rep 4 you

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