logcomptechs Posted September 6, 2010 Posted September 6, 2010 (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 September 6, 2010 by logcomptechs
wakillon Posted September 6, 2010 Posted September 6, 2010 Could you give url and button name ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
logcomptechs Posted September 6, 2010 Author Posted September 6, 2010 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.
Juvigy Posted September 6, 2010 Posted September 6, 2010 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
logcomptechs Posted September 6, 2010 Author Posted September 6, 2010 (edited) Already tried that example, if I set the TagName to "button", it does not find any "type=button" only finds "type=submit". Edited September 6, 2010 by logcomptechs
seandisanti Posted September 6, 2010 Posted September 6, 2010 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")
logcomptechs Posted September 7, 2010 Author Posted September 7, 2010 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.
Juvigy Posted September 7, 2010 Posted September 7, 2010 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.
logcomptechs Posted September 7, 2010 Author Posted September 7, 2010 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?
Juvigy Posted September 8, 2010 Posted September 8, 2010 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).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now