lkubler Posted June 29, 2017 Share Posted June 29, 2017 Hi, Trying to setup a kiosk and need to log into a site and navigate to a specific page using IE 11 and trying IE.au3. I am able successfully launch IE to the login page, enter username and password and click the login button, all using _IEGetObjById, works cool. But that takes me to a dashboard page where the link I need to click next is in the form of a tile. So far I have not been able to figure out how to select the tile I want or even the href. Here's the code from the web page that shows the object I'm trying to click: <div class="tile highlight-2" id="8672" changed="false"> <a href="/app/verification/v2/dashboard/displayList/8672"> <span class="tile-desc">Patient - Prepare</span> <span class="tile-count">8</span> </a> </div> I've played around with _IELinkClickByIndex and _IELinkClickByText with no luck, can't figure out how to determine the href. I can use the mouseclick() method but the location of the tile moves depending size and shape of the screen and resolutions. Any thoughts? Thanks in advance, Linn Link to comment Share on other sites More sharing options...
lkubler Posted June 29, 2017 Author Share Posted June 29, 2017 Correction: Can't figure out how to determine the index of the href. (that should read) Link to comment Share on other sites More sharing options...
Danp2 Posted June 29, 2017 Share Posted June 29, 2017 How about this? $oDiv = _IEGetObjById($oIE, "8672") $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...
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