Jump to content

Recommended Posts

Posted (edited)

Trying to click on

<input type="button" name="test" value="Send">
using the _IE functions but it is not wrapped in
<form>
(so I do not have a form name) tags and the button is not even a submit button. Any ideas?

Edited by logcomptechs
Posted

Could you give url and button name ?

Already gave the button name
<input type="button" name="test" value="Send">
and this is just a general question, trying to apply to any website, that uses type=button instead of type=submit.
Posted

Check out this example:

*******************************************************
; Example 1 - Open a browser with the form example, get the collection
;               of all INPUT tags and display the formname and type of each
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("form")
$oInputs = _IETagNameGetCollection ($oIE, "input")
For $oInput In $oInputs
    MsgBox(0, "Form Input Type", "Form: " & $oInput.form.name & " Type: " & $oInput.type)
Next
Posted (edited)

Already tried that example, if I set the TagName to "button", it does not find any "type=button" only finds "type=submit".

Edited by logcomptechs
Posted

Already tried that example, if I set the TagName to "button", it does not find any "type=button" only finds "type=submit".

try....

$button = _IEGetObjByName($oIE,"test")
_IEAction($button,"click")
Posted

Your IE object points to the main window not the pop-up.

Not sure if you can attach to that or maybe control click it.

Well it is a <div> container (then they use AJAX to pop it up), so would that be considered a pop-up or part of the IE main window?

Posted

Before the "Pop-up" pops do you see the "<input type="button" name="test" value="Send">" in the source code of the main page?

If yes , please upload the source code (or bigger part of it).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...