Katalon Studio v5.8 - It's time for the all-new API testing experience
Dave Evers
Katalon Ambassador
01/24/2018

Tip for finding CSS & XPath locators using Chrome with an example:

Copies CSS to the OS clipboard
1 Open Chrome
3 Right click on "Google Search" button & select "Inspect"
4 Right click on the highlighted element
5 Click "Copy" > "Copy selector" 
6 Paste the clipboard results into any text editor
Result: #tsf > div.tsf-p > div.jsb > center > input[type="submit"]:nth-child(1)
7 Add this to your Object

Copies XPath to the OS clipboard
1 Open Chrome
3 Right click on "Google Search" button & select "Inspect"
4 Right click on the highlighted element
5 Click "Copy" > "Copy XPath" 
6 Paste the clipboard results into any text editor
7 Add this to your Object
Tagged:
Upvote
Quote

Comments

Sign In or Register to comment.