MJ36 Posted November 13, 2019 Share Posted November 13, 2019 (edited) HI, How to click the second same item. Searching for him by class <ul> <li><a class="showFileOptions" href="#" title="opcje" rel="nofollow"><img alt="opcje" src="//x4.static-/res/e174c25b70.png" title="opcje" /></a></li> <li><a class="showFileOptions" href="#" title="opcje" rel="nofollow"><img alt="opcje" src="//x4.static-/res/e174c25b70.png" title="opcje" /></a></li> I tried and of course clicks on the first one Local $oButtons = _IETagNameGetCollection($oIE, "a") If IsObj($oButtons) Then For $oButton In $oButtons If $oButton.getAttribute("class") = "editFileBtn" Then _IEAction($oButton, "click") ExitLoop EndIf Next EndIf But I want to click the other one please help Edited November 13, 2019 by MJ36 to fast :D Link to comment Share on other sites More sharing options...
Nine Posted November 13, 2019 Share Posted November 13, 2019 You can use the index of the _IETagNameGetCollection($oIE, "a", $index) to access the one tag you want. So the loop becomes useless. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy 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