karliky Posted October 29, 2008 Share 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") Link to comment Share on other sites More sharing options...
weaponx Posted October 29, 2008 Share Posted October 29, 2008 You are calling _IEGetObjByName yet your object has no name attribute... Link to comment Share on other sites More sharing options...
karliky Posted October 30, 2008 Author Share Posted October 30, 2008 You are calling _IEGetObjByName yet your object has no name attribute..._IEGetObjByAttribute? Link to comment Share on other sites More sharing options...
weaponx Posted October 30, 2008 Share 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. Link to comment Share on other sites More sharing options...
weaponx Posted October 30, 2008 Share 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 Link to comment Share on other sites More sharing options...
karliky Posted October 30, 2008 Author Share 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! Link to comment Share on other sites More sharing options...
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