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
19,995 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.

For further understanding, you can refer to the Selenium Training.

answered Aug 22, 2019 by Abha
• 28,140 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 22, 2020 in Selenium by Lakshmi Sarvepalli
3,140 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,190 points
69,262 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 4, 2020 in Selenium by Sri
• 3,190 points
1,209 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,500 points
12,616 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,190 points
8,572 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,910 points
6,629 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 3, 2020 in Selenium by Sri
• 3,190 points
7,517 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,140 points
2,675 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 23, 2019 in Selenium by Abha
• 28,140 points
5,569 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP