Element locator strategy "predicate" and "class chain" does not support with iOS9

Hi,

I wan’t to use “predicate” and “class chain” locator strategy with iOS9. How can I use it?

Environment

  • Appium version (or git revision) that exhibits the issue: 1.7.0 beta
  • Desktop OS/version used to run Appium: mac os sierra
  • Node.js version (unless using Appium.app|exe): v6.11.0
  • Mobile platform/version under test: iOS9(iPhone 7)
  • Real device or emulator/simulator: simulator

Appium log:

[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["-ios class chain","**/UIAWindow/UIAStaticText","2bde1552-0877-4856-95a0-4cac52acc8fe"]
[debug] [iOS] Executing iOS command 'findElement'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, -ios uiautomation, accessibility id
[HTTP] <-- POST /wd/hub/session/2bde1552-0877-4856-95a0-4cac52acc8fe/element 500 3 ms - 156

Please try as per

If it’s not working, then open issue with detailed info as per issue template

Hi Vikram,

Thank you, but I am using iOS9 and WebDriverAgent is use for iOS10.
I think as per the appium log:
Valid locator strategies for this request: xpath, id, class name, -ios uiautomation, accessibility id
it only support for these(mentioned in log) element strategy.

Is there any solution for it?

I think the error message needs to be updated, you can try out solution as per WDA wiki page and if it doesn’t work open issue in github.