crazycrash Posted January 12, 2017 Share Posted January 12, 2017 (edited) Hi all I really struggle to figure out how to click this "More" link. It just expands the text. I can't find the link in the _IELinkGetCollection . Also _IELinkClickByText doesn't work, because it doesn't detect it as a link. Maybe something along this? Local $oDiv = _IEGetObjById($oIE, "div_Description") _IEAction($oDiv, "click") Thanks! "More" link to click: <div id="div_Description"> Some description, more... <br /> <a data-ct="true" data-ct-area="Immobilien" data-ct-id="MoreDescriptions" data-ct-subtype="MoreInformation" data-ct-target="Internal" data-ct-type="Contentlink" data-finder-hf-descriptiondetail-adid="15966452" data-finder-hf-descriptiondetail-detailserviceurl="/immobilien/dataprovider/" data-finder-hf-descriptiondetail-infotype="Description" rel="nofollow">More</a></div> Edited January 12, 2017 by crazycrash Link to comment Share on other sites More sharing options...
Danp2 Posted January 12, 2017 Share Posted January 12, 2017 Not sure if this will work, but you could try -- Local $oDiv = _IEGetObjById($oIE, "div_Description") Local $oLink = $oDiv.childNodes[1] _IEAction($oLink, "click") Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Danp2 Posted January 12, 2017 Share Posted January 12, 2017 If that doesn't work, you should be able to use $oDiv as the first parameter to _IETagNameGetCollection and get the link that way. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
crazycrash Posted January 13, 2017 Author Share Posted January 13, 2017 Thank you. The following worked: Local $oDiv = _IEGetObjById($oIE, "div_Description") Local $oElements = _IETagNameAllGetCollection($oDiv) For $oElement In $oElements _IEAction($oElement, "click") Next The childnode one didnt. Cheers 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