Some of you feel a bit annoying for writing XPath to specify html element in Selenium Test.
I think the easiest way is using Chrome or using Firebug of Firefox.
I think the easiest way is using Chrome or using Firebug of Firefox.
Chrome
- Right click html area you would like to get XPath, and select "Inspect element"
- Right click the html element and select "Copy XPath" in the opened area
Firebug
- Right click html area you would like to get XPath, and select "Inspect Element with Firebug"
- Right click the html element and select "Copy XPath" in the opened area
コメント