TruePath v1.0.4
When a user right-clicks on any web element on the web page, it will display all the XPath as a menu item.
TruePath helps you in the creation of Dynamic XPath, Relative XPath, Unique XPath as well as Index XPath.
Truepath can generate XPath using text value.
Using TruePath now, users can quickly create the automation scripts for the pages and hence drastically reduced the effort required for the scripting. TruePath generates the code for Java, C#, Robot & Excel.
TruePath can create XPath in iFrame or Frame. It also shows the iFrame and iFrame URL so that the user can quickly identify that from which iFrame or Frame the XPath is generated.
TruePath supports the Page Object XPath format or @FindBy. We can use it in Selenium Page Object locater or Serenity Page Object locater.
How to use video:
********************************
How to use for Firefox: https://www.youtube.com/watch?v=3qEILqbgsjQ
TruePath-How TruePath help to find XPath for elements which have dynamic attributes: https://www.youtube.com/watch?v=ImSUN4tvPog
For Firefox version > 55: It then groups the XPath as follows:
***********************************************************
1. Green thumbs-up: This group will contain all XPath except id, href, src or any http\ https.
2. Yellow thumbs-up: This group will contain all XPath which has id, href, src or any http\ https as an attribute.
3. Red thumbs-up: This group will contain all indexed XPath.
For Firefox version < 56: It then group the XPath as follows:
***********************************************************
1. XPath with id, href, src: This group will list all XPath which has id, href, src or any http\ https as an attribute.
2. XPath with class, name, title: This group will list all XPath except those containing id, href, src or any http\ https.
3. XPath with index: As the name suggests this group will contain all indexed XPath.
Sometimes the attributes id, src, href, etc. contains auto-generated values that's why grouping them under yellow thumbs. Indexed XPath is kept in Red Thumbs up the group as they are vulnerable to the frequent UI changes. The automation tester can use this XPath from these two groups, depending upon the understanding of the web page(AUT).
For Issues:
https://github.com/gsumit1/TruePath/issues