TestProject Forum

Dynamix Xpath for android mobile testing

How to create a dynamic xpath for android mobile testing?
How to find tag,attribute and variable from the element locator?

Hello @tanvi.lohakare
First, you can hover over the element itself, press on double shift and you can then inspect all of the element attributes:

From the element explorer, you can just click on the desired element, and it will open the same menu, where you can then inspect its attributes:


After clicking on the element:

Then you can add a parameter to the XPath of the element to make it dynamic:

Edit the element:

Then you can click on the + sign to add a parameter to the xpath


For example, here I added the ‘time’ parameter to the xpath of the element.