0

I have a question on selenium ide testing. How should I click or select on tree menu expand icon? When an icon hasn't any id or text, only class. <div class="GridxTreeExpandoIcon"> and it also has a shortcut control + right arrow. How to can I click control and right arrow with this script?

Satnam
  • 23
  • 1
  • 7

1 Answers1

0

you can use the class as a locator to target the click, it would just be:

class=GridxTreeExpandoIcon

Or if you needed to be more specific and reference the div (if the same class is used for multiple elements:

css=div[class="GridxTreeExpandoIcon"]

This second version can be used for any attribute within a tag (e.g. title, value etc.)

Jsmith2800
  • 1,113
  • 1
  • 9
  • 18
  • Maybe You could tell me how to click that icon, which is near some text. To be clear, there are few GirdxTreeExpandoIcons. And every icon is near some component id. For example near component id 1 : `
    1<\div>`
    – Satnam Sep 01 '16 at 11:45