Forum Discussion

revthi's avatar
revthi
New Contributor
7 years ago

Unable to retrieve icon to click on list of items

Hi Team,

 

Unable to retrieve element on a list based on specific text. here is my HTML tag structure.

i want click on 3 dot icon based on text on it. but the icon wrapped in ul tag with list of li tags.

in li tag have text with span element, with in same tag 3 threedot icon present.

Please help how to click on 3 dots icon based text on it as am new to test complete.

script generated by using coordinates on page as shown below

Aliases.browser.pageOpsworkforcetrBnsfComTemptra2.panelMainWrap.panel2.panel.panel.panelmychanged.Click(323, 211) 

 

please find the attachment for html structure and icon to cilck.

Thanks,

Revthi

 

3 Replies

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    Can you recognize this control using the Object Spy?

  • jkrolczy's avatar
    jkrolczy
    Regular Contributor

    Maybe Dev could add further Ids to this icon element.

     

    another option.

     

    If you can Object Spy the main Icon and obtain the height and width, you could then

    apply some math to work from the (x,0) - upper right part of icon and determine a suitable

    coordinate to use to click on the [...] 3 dots.

     

    This could be applied to the other icons in the same fashion.

     

    Hope this approach helps.

     

    JamesK.

    • revthi's avatar
      revthi
      New Contributor

      Hi James,

       

      Thank you for response. since it is glyphicon, unable to select using objectSpy. Issue got resolved by using findchildbyXpath.

       

      Thanks,

      Revthi