4

is there any easy way to find xpath ?

<span class="r5">5</span><a href="http://google.com">Google</a>

what will be the xpath of r5 ?

Thanks..

Vamsi Krishna B
  • 11,377
  • 15
  • 68
  • 94
  • See [How to calculate the XPath position of an element using Javascript?](http://stackoverflow.com/questions/3454526/how-to-calculate-the-xpath-position-of-an-element-using-javascript/3454545#3454545). – Matthew Flaschen Aug 15 '10 at 06:20

1 Answers1

3

span[@class='r5']

geoffc
  • 4,030
  • 7
  • 44
  • 51