How to use Chropath for locating web element in selenium

0 votes
How to use Chropath for locating web element in selenium?
Aug 19, 2019 in Selenium by Angad
7,080 views

1 answer to this question.

0 votes

Hey Angad, you can follow these steps to use Chropath for locating elements:

  1. After installing ChroPath extension, reload the page for which you want to use it.

  2. Right-click on the web page, and then click Inspect.

  3. In the right side of Elements tab, click on ChroPath tab. If ChroPath is not visible then click on the arrow icon >>. ChroPath will be shown as last tab in sidebar.

  4. To generate XPath inspect element or click on any dom node, it will generate the absolute and relative XPath selector for the selected node.

  5. To evaluate XPath, type the XPath query and press enter key. As you enter, it will query in DOM for the relevant element/node. A dashed blue outline appears around to highlight the matching elements in the web page.

answered Aug 21, 2019 by Abha
• 28,020 points
hi

chrme in not work
Whats the error you are getting?

Related Questions In Selenium

0 votes
2 answers
0 votes
2 answers

How can we use JavaScript Executor to click and enter data to a web element in Selenium?

WebElement element = driver.findElement(By.id("abcd")); // Let the ...READ MORE

answered Mar 21, 2020 in Selenium by Lakshmi Sarvepalli
1,592 views
0 votes
5 answers

How to use JavaScript in selenium to click an Element?

WebElement element = driver.findElement(By.id("id")); JavascriptExe ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,010 points
40,456 views
0 votes
2 answers

How to use link as a locator to find element in selenium?

driver.findElement(By.linkText("link")).click(); READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,010 points
412 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
4,897 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,010 points
5,700 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
3,477 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,010 points
4,176 views
0 votes
1 answer

How to import TestNG in Eclipse for Selenium?

Hi Charu, to install TestNG framework in ...READ MORE

answered May 17, 2019 in Selenium by Abha
• 28,020 points
1,079 views
0 votes
1 answer

How can I add Cucumber Jar files in Eclipse to use with Selenium Webdriver?

Hey Eshan, follow these steps to add ...READ MORE

answered May 22, 2019 in Selenium by Abha
• 28,020 points
2,266 views