Raj Discussion
Raj Discussion

Reputation: 185

How to get Xpath in chrome that is same as Selenium XPath in FireFox

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

Answers (2)

Kushal Bhalaik
Kushal Bhalaik

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

Shamik
Shamik

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. Copying xpath of element Your answer

And xpaths are same nothing to do with chrome or firefox.

Upvotes: 8

Related Questions