0

Any idea how to select an element using Selenium and this output i Firebug:

<tr class="ui-widget-content ui-datatable-even ui-datatable-selectable" aria-selected="false" role="row" data-rk="0101" data-ri="0">

Magnus Jensen
  • 905
  • 6
  • 36
  • 73

2 Answers2

0

Use Chrome, lots easier. Locate the element, then open context menu with right click, Copy -> XPath. Tutorial with images: How to verify an XPath expression in Chrome Developers tool or Firefox's Firebug?

Community
  • 1
  • 1
Anton Angelov
  • 1,705
  • 13
  • 16
0

Use Firepath plugin for Firefox, which is add-on with dependency of Firebug

You can evaluate both XPATH & cssSelectors.

Naveen Kumar R B
  • 6,248
  • 5
  • 32
  • 65