mknope Posted October 24, 2018 Share Posted October 24, 2018 Hello, I am trying to click the link in the image highlighted with the red box. I am doing something wrong because I am getting no where. Any help would be appreciated. $oDivs = _IETagNameGetCollection ($oIE, "div") For $oDiv in $oDivs If String($oDiv.classname) = 'resource myapps-myfolder' And String($oDiv.innerText)= 'Cert' Then _IEAction($oDiv, "click") ExitLoop EndIf Next Link to comment Share on other sites More sharing options...
Danp2 Posted October 24, 2018 Share Posted October 24, 2018 1) We can't read your mind, so it would help if you posted the results from the Scite Output panel. 2) The code you posted clicks the div, not the actual link 3) Have you tried something like this? $oDiv = _IEGetObjById($oIE, "myapps-container") _IELinkClickByIndex($oDiv, 0) That may not work because I'm unsure if _IELinkClickByIndex will accept a Div element as the first parameter. If not, then try this -- $oDiv = _IEGetObjById($oIE, "myapps-container") $oLink = _IETagNameGetCollection($oDiv, "a", 0) _IEAction($oLink, "click") Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mknope Posted October 24, 2018 Author Share Posted October 24, 2018 @Danp2 Unless I am not looking in the right place, I am not seeing much being written to the output box at the bottom. That's why I didn't include it. I will try your suggestions though. Thanks! 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