TruePath dynamically generates relative XPath on right click on web page and display all the XPath as menu items. It then group the XPath as follows (Firefox versions 56+)
1. Green thumbs up: This group will list all XPath except those containing id, href, src or any http\ https.
2. Yellow thumbs up: This group will list all XPath which has id, href, src or any http\ https as attribute.
3. Red thumbs up: This group will contain all indexed XPath.
If elements have long, auto-generated attributes such as id="abc123_ElementContains_Inputs_txtName" it will attempt to locate based on the final (and most significant) part of the value only.
Sometimes the attributes id, src, href etc. contains auto-generated values that's why grouping them under yellow thumbs. Indexed XPath are kept in Red Thumbs up group as they are vulnerable to the frequent UI changes. The automation tester can use these XPath from these two groups, depending upon the understanding of the web page(AUT).
URL: Firefox
https://addons.mozilla.org/en-US/fire...
URL: Chrome
https://chrome.google.com/webstore/de...