get relative xpath, absolute xpath & CSS selectors. Edit, inspect & verify XPath & CSS selectors in devtools panel itself.
ChroPath brought to you by AutonomIQ, Product Evangelist Sanjay Kumar.
Latest updates -
1) Fixed ChroPath icon in chrome://extensions/ page
2) highlight buttons on mouse hover
3) Optimised relative xpath for different types of attribute.
How to use it-
1. After installing ChroPath, reload the page for which you want to use it or restart chrome browser.
2. Right-click on the web page anywhere, and then click Inspect.
3. In the right side of Elements tab, click on ChroPath tab.
Note- If ChroPath is not visible then click on the arrow icon as shown in the Screenshot. ChroPath will be shown as last tab in sidebar.
4. To generate XPath/CSS inspect element or click on any dom node, it will generate the unique relative XPath/absolute XPath/CSS selector for the selected node.
5. To eavluate XPath/CSS, type the XPath/CSS query and press enter key.
As you enter, it will query in DOM for the relevant element/node. You can view the matching node(s) and nodes value as per their sequential occurrence. A dashed blue outline appears around to highlight the matching elements in the web page.
Please refer screenshot for more info.
6. To copy the XPath/CSS value click on the copy icon.
Note- 1- To use only one selector rel xpath/abs xpath/CSS features, change the dropdown value from selector to rel XPath/abs XPath/CSS in header.
2- ChroPath will add xpath/css attribute to all the matching node(s) as per their sequential occurrence. For example, a matching node appearing second in the list will have xpath=2. And if verifying CSS then it will have css=2.
1. It will generate the unique relative XPath/ absolute XPath and unique CSS selector for inspected element/selected node.
2. It opens as sidebar tab in devtools panel where you can access DOM, inspect element in Elements tab and write the XPath/CSS in ChroPath tab and evaluate there itself.
3. It will scroll the window to the 1st matching node (will scroll if 1st matching element not in visible area).
4. You can view the matching node(s) and nodes value as per their sequential occurrence. A dashed blue outline appears around to highlight all the matching elements in the web page.
5. If you mouse hover on any matching node in the ChroPath tab, blue dashed outline will convert into dotted orangered to highlight the corresponding element in the webpage.
6. If the found element is not in visible area on webpage then mouse hover on found node in ChroPath tab will scroll that element in the visible area with dotted orangered outline.
7. If found element is not highlighted but visible on webpage, on mouse hover on matching node in ChroPath tab it will highlight element with dotted orangered outline.
8. If you enter wrong XPath/CSS pattern it will highlight the input box in red color.