MRAJ Posted October 17, 2018 Posted October 17, 2018 Hi, Below is my autoit script which will click on continue to this website(not recommended) when the website comes up in IE. But it is not working and its be on the same page. Appreciate the help. Below is the HTML code: <a name="overridelink" id="overridelink" href="https://*****.rdl?Web=1">Continue to this website (not recommended).</a> Local $oIE = _IECreate($URL,0,1,0) $oAccess = _IEGetObjById($oIE,"overridelink") _IEAction($oAccess, "click")
Danp2 Posted October 17, 2018 Posted October 17, 2018 "Not working" isn't enough information for us to help you. Can you show us the results from the Scite output panel? Latest Webdriver UDF Release Webdriver Wiki FAQs
MRAJ Posted October 17, 2018 Author Posted October 17, 2018 Below is the Scite output: --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () --> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () --> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType >Exit code: 0 Time: 44.17
Danp2 Posted October 17, 2018 Posted October 17, 2018 Seems like the object returned by the initial _IECreate isn't valid. This could occur due to redirects, security zones, etc. You could try adding an _IEAttach after this command in an attempt to obtain a valid object reference. Latest Webdriver UDF Release Webdriver Wiki FAQs
MRAJ Posted October 17, 2018 Author Posted October 17, 2018 You mean to say like this: Local $oIE = _IEAttach($URL,0,1,0) $oAccess = _IEGetObjById($oIE,"overridelink") _IEAction($oAccess, "click")
Danp2 Posted October 17, 2018 Posted October 17, 2018 Like this -- _IECreate($URL) $oIE = _IEAttach($URL, "url") $oAccess = _IEGetObjById($oIE,"overridelink") _IEAction($oAccess, "click") Latest Webdriver UDF Release Webdriver Wiki FAQs
MRAJ Posted October 17, 2018 Author Posted October 17, 2018 One thing i found same script if i am running in different server, it is working fine and clicking. I am not sure any IE settings or any security block or windows settings to be checked in this server.
MRAJ Posted October 17, 2018 Author Posted October 17, 2018 Issue got fixed. Thanks Dan for the support.
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