Xpath to elements

When Im trying to inspect my app (IOS) in console I see the appium’s response :


The path property in this case is : 0/0/7/0

While I’m looking in appium inspector , the xpath value is: //UIAApplication[1]/UIAWindow[1]/UIAImage[4]/UIAImage[1]

Any idea how does the response “path” being translated to the xpath value ?


This is a common question. I’ve responded on GitHub:

In summary, path refers to index path and not xpath.

Thanks for the help.

The problem is, I’m using Java client, and as I see, there is no such a method in Java for the MobileElement object.

What do you think?

Java has an executeScript method.