How to use Chropath for locating web element in selenium?

0 votes
How to use Chropath for locating web element in selenium?
Aug 19 in Selenium by Angad
25 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 by Abha
• 22,960 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

How to use JavaScript in selenium to click an Element?

Executing a click via JavaScript has some ...READ MORE

answered Apr 13, 2018 in Selenium by Shubham
• 13,290 points
12,096 views
0 votes
1 answer

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

Hello @Jino, its amazing to explore ways ...READ MORE

answered Dec 21, 2018 in Selenium by Nabarupa
91 views
0 votes
1 answer

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,090 points
564 views
0 votes
1 answer
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,130 points
895 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
559 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 in Selenium by Abha
• 22,960 points
52 views
0 votes
1 answer