Wednesday 9 November 2016

How to get Xpath of elements in webdriver..!!

Hi,
Today we will be learning how to use xpath in webdriver.
To get the Xpath of an element,First move pointer over the element whose Xpath we want to find then Right click and click on Inspect element with Firebug.
firebug
Then Right click on the highlighted text in HTML tab in firebug
and then click on Copy Xpath.
xpath
Thats how can we get the Xpath of any element using firebug.:)

0 comments: