Search code examples
javaiosiphoneselenium-webdriverappium-ios

How to inspect & write xpath on iPhone real device


I am using the following details.

Appium : 1.6.4
Ios : 10.3.1
Mac : 10.12.4

I need to inspect the elements in iPhone and frame the Xpath. For that I am using "ios-inspector.html".

enter image description here

I can't see the proper html attribute here. So kindly help me how to inspect an elements and frame the Xpath.


Solution

  • There was issue with carthage. Ran below commands and it got resolved :

    rm '/usr/local/bin/carthage' 
    brew install carthage 
    brew link carthage