How to find the Xpath of an anchor tag(which is not in Ul or Ol or Li) which is inside a div tag. This anchor tag is immediately after the div tag. How to find the Xpath of it.


If anyone know pl mail me at tulasi26ram@yahoo.co.in

Views: 7

Comment

You need to be a member of Test Republic to add comments!

Join Test Republic

Comment by tulasiram on November 13, 2010 at 1:30am
I got the answer from you.
Thank you Akhil
Comment by Patel Akhilkumar Punambhai on November 11, 2010 at 2:04pm
Are you able to find XPath of div tag? if yes then add /a[@any attribute which is present or contains for matching the text of link]
For example: XPath of Hindi link on google home page (there were font tag between div and a in your case you have to remove font)
//div[@id='als']/font/a[@href='http://www.google.co.in/setprefs?sig=0_Z-tX5wsnM_V4a_3ZumtfxW4eWlI=&hl=hi']

© 2014   Created by Test Republic.

Badges  |  Report an Issue  |  Terms of Service