filmov
tv
Selenium with Java 14 - Installation and usage Chropath extension | Xpath and css chrome extension
![preview_player](https://i.ytimg.com/vi/bnGrprajwsk/maxresdefault.jpg)
Показать описание
Chrome extension chropath to find the absolute xpath, relative xpath and css locator.
What is Chropath
Why we need Chropath
How to setup Chropath
How to use Chropath
Chropath link for chrome browser:
Chropath link for firefox browser:
ChroPath is one of the best chrome extension which gives the unique xpath (absolute/relative).
XPath extension for Chrome.
ChroPath also used as best CSS locator chrome extension.
Who Invented ChroPath?
Sanjay Kumar-Senior Software developer in test (SDET) at InMobi has invented ChroPath
Why we need XPath?
Firepath addon for firefox is now not compatible with latest versions of Firefox.
Only tool which provides absolute xpath, relative xpath and css selector.
ChroPath will generate the absolute XPath and CSS selector for inspected element/selected node.
It will scroll the window to the 1st matching node
You can view the matching node and nodes value as per their sequential occurrence.
A dashed blue outline appears around to highlight all the matching elements in the web page.
How to setup ChroPath?
Search for Chropath extension in chrome
Open link in Chrome browser and add the extension and install it.
After installing this extension, reload the page for which you want to test it.
How to Use ChroPath?
Right-click on the web page, and then click Inspect.
In the right side of Elements tab, click on ChroPath tab.
Type the XPath/CSS query and press enter key.
Or click on inspector and click on element in html document window
Matched elements will get blue dotted border
If you get multiple search elements then click on HTML dom or searched element list and element will get orange border
How to use ChroPath in Firefox-
1. Right-click on the web page, and then click Inspect.
2. In devtools panel, click on ChroPath tab.
3. Click on inspect which is in ChroPath tab below selectors.
4. Now inspect element for which you want to generate the selectors.
5. Here in ChroPath tab you will get the unique Relative XPath, Absolute XPath and CSS selectors and you can also edit and evaluate it.
6. 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 blue colour outline appears around to highlight the matching elements in the web page.
7. 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.
8. If the found element is not in visible area on webpage then mouse hover on found node in ChroPath panel will scroll that element in the visible area with dotted orangered outline.
9. If found element is not highlighted but visible then on mouse hover on matching node on ChroPath tab it will highlight element with dotted oragered outline.
10. copy the xpath/css just by clicking on copy icon.
Possible Interview Questions on Chropath :
What is ChroPath
How to install and use ChroPath
Why we need ChroPath
Why Chropath is recommended over firepath
What is Chropath
Why we need Chropath
How to setup Chropath
How to use Chropath
Chropath link for chrome browser:
Chropath link for firefox browser:
ChroPath is one of the best chrome extension which gives the unique xpath (absolute/relative).
XPath extension for Chrome.
ChroPath also used as best CSS locator chrome extension.
Who Invented ChroPath?
Sanjay Kumar-Senior Software developer in test (SDET) at InMobi has invented ChroPath
Why we need XPath?
Firepath addon for firefox is now not compatible with latest versions of Firefox.
Only tool which provides absolute xpath, relative xpath and css selector.
ChroPath will generate the absolute XPath and CSS selector for inspected element/selected node.
It will scroll the window to the 1st matching node
You can view the matching node and nodes value as per their sequential occurrence.
A dashed blue outline appears around to highlight all the matching elements in the web page.
How to setup ChroPath?
Search for Chropath extension in chrome
Open link in Chrome browser and add the extension and install it.
After installing this extension, reload the page for which you want to test it.
How to Use ChroPath?
Right-click on the web page, and then click Inspect.
In the right side of Elements tab, click on ChroPath tab.
Type the XPath/CSS query and press enter key.
Or click on inspector and click on element in html document window
Matched elements will get blue dotted border
If you get multiple search elements then click on HTML dom or searched element list and element will get orange border
How to use ChroPath in Firefox-
1. Right-click on the web page, and then click Inspect.
2. In devtools panel, click on ChroPath tab.
3. Click on inspect which is in ChroPath tab below selectors.
4. Now inspect element for which you want to generate the selectors.
5. Here in ChroPath tab you will get the unique Relative XPath, Absolute XPath and CSS selectors and you can also edit and evaluate it.
6. 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 blue colour outline appears around to highlight the matching elements in the web page.
7. 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.
8. If the found element is not in visible area on webpage then mouse hover on found node in ChroPath panel will scroll that element in the visible area with dotted orangered outline.
9. If found element is not highlighted but visible then on mouse hover on matching node on ChroPath tab it will highlight element with dotted oragered outline.
10. copy the xpath/css just by clicking on copy icon.
Possible Interview Questions on Chropath :
What is ChroPath
How to install and use ChroPath
Why we need ChroPath
Why Chropath is recommended over firepath
Комментарии