Hi,
When Im trying to inspect my app (IOS) in console I see the appium’s response :
[{"UIAImage":{"@":{"name":"/Users/ie54553/Library/Developer/CoreSimulator/Devices/123456/data/Applications/789798/My.app/Resources.bundle/black_btn.png","label":null,"value":null,"dom":null,"enabled":true,"valid":true,"visible":false,"hint":null,"path":"/0/0/7/0","x":10,"y":264,"width":80,"height":80}
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 ?
Tanks
This is a common question. I’ve responded on GitHub:
In summary, path refers to index path and not xpath.
Hi,
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?