Jump to content

How to click the second same item. Searching for him by class


MJ36
 Share

Recommended Posts

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 by MJ36
to fast :D
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...