Reputation: 185
I have a web application which is open only in Chrome (not in Firefox and IE). I want to automate this application using Selenium, but there is no selenium recorder support for chrome.
How can I get Xpath in chrome same as Selenium XPath in FireFox
Upvotes: 0
Views: 35337
Reputation: 3384
If you go by @shmaik 's answer; then you'll have to replace "
WITH '
in Eclipse IDE, if you are extracting xpath from google chrome.
Upvotes: -1
Reputation: 1609
Look at the source. In chrome right click on the element and click inspect element it will open the source in developer console and then you can right click on the source of the element and get the xpath using copyxpath which you can use to find element.
And xpaths are same nothing to do with chrome or firefox.
Upvotes: 8