AN9 Posted January 19, 2021 Share Posted January 19, 2021 Hi Trying to write a script to click the image button but no luck, sure you fellows can give me a hand on this? Local $oButtons = _IETagNameGetCollection($pIE, "img") For $oButton In $oButtons If StringStripWS($oButton.value, 4) = "download('abc.zip');" Then _IEAction($oButton, 'click') EndIf Next <img src="../../image/download_icon.jpg" border="0" style="cursor: hand" onclick="download('abc.zip');"> Link to comment Share on other sites More sharing options...
AN9 Posted January 19, 2021 Author Share Posted January 19, 2021 I sorted out guys, all good! Local $oButtons = _IETagNameGetCollection($pIE, "img") For $oButton In $oButtons ;MsgBox(64,'Found','Value: ' &$oButton.getAttribute("onclick")) If $oButton.getAttribute("onclick") = "download('abc.zip');" Then _IEAction($oButton, 'click') EndIf <img src="../../image/download_icon.jpg" border="0" style="cursor: hand" onclick="download('abc.zip');"> 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