XPath generated From Appium Inspector is not working when tried to run it on Appium Studio

I’ve my automation code for iOS platform in place, which had elements located using Xpath from Appium Inspector. When i tried using the same code for Appium Studio, its throwing “element not found exception”. Can you please help me out in understanding how to re-use my existing Appium Automation code for Appium Studio.

Can you share the By information you are using in the fail cases?

This test was develop for version earlier then iOS 9.1.
Please try to add the following capability:
dc.setCapability(“automationName”, “UIAutomation”);

By the way I would recommend you to improve the used xpaths, never use absolute path, and try to avoid using indexes like [5].

1 Like

This was developed using iOS version 9.3. This was the path provided by Appium Inspector. Anyways will try to set the mentioned capability and try to verify.