Sign in to follow this  
Followers 0
logcomptechs

IE Question?

10 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Could you give url and button name ?


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  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

Share this post


Link to post
Share on other sites

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")

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

try....

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

Tried that as well. I am thinking it is because the input button is in a AJAX pop up window.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0