karliky Posted October 29, 2008 Posted October 29, 2008 I have this button: <button style="width: 100%" type="submit" onclick="return lanzo3();">Continuar Cierre</button> and i used this code,but nothing happens: _IELoadWait ($oIE) $o_submit = _IEGetObjByName ($oIE, "submit") _IEAction ($o_submit, "click")
weaponx Posted October 29, 2008 Posted October 29, 2008 You are calling _IEGetObjByName yet your object has no name attribute...
karliky Posted October 30, 2008 Author Posted October 30, 2008 You are calling _IEGetObjByName yet your object has no name attribute..._IEGetObjByAttribute?
weaponx Posted October 30, 2008 Posted October 30, 2008 _IEGetObjByAttribute? This one is a little tricky because the html is bad. The element doesn't have a name or id attribute.
weaponx Posted October 30, 2008 Posted October 30, 2008 I think you will have to do this: $oButtons = _IETagNameGetCollection ($oIE, "button") For $oButton In $oButtons ConsoleWrite($oButton.type & @CRLF) If $oButton.type = "submit" Then _IEAction ($oButton, 'click') EndIf Next
karliky Posted October 30, 2008 Author Posted October 30, 2008 I think you will have to do this: $oButtons = _IETagNameGetCollection ($oIE, "button") For $oButton In $oButtons ConsoleWrite($oButton.type & @CRLF) If $oButton.type = "submit" Then _IEAction ($oButton, 'click') EndIf Nextwoha! it works! Thank you!
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