Appium cannot interact By.name with iOS 16

Hi:
With iOS 16.4 my tests are failed because appium cannot interact with elements by name in iOS 16.4 however Appium see these elements in the XML with Appium Inspector and calling driver.getPageSource() but only can interact with the element class.

Debugging with ide:

Evaluate 2023-05-11 at 3.30.44 PM.jpg

Evaluate 2023-05-11 at 3.28.43 PM.jpg

Appium version: 1.22.3
Device: iPhone 14

Please, can someone help me?

You should use Appium 2 with iOS 16.

Thanks, but Is this mandatory because Appium 2 is still beta right?

Here is the reason I recommend using Appium 2 for anything later than iOS 15.2 (with Xcode 13.2.1):

:bangbang: Appium core team does not maintain Appium 1.x anymore since the 1st of January 2022. All recent versions of officially supported platform drivers are not compatible to Appium 1.x anymore, and require Appium 2 to run. Please read the migration guide from 1.x to 2.0 to manage the Appium server.

And you’ll see here the releases that occur after Jan 2022:

According to those dates, there has been no work on Appium 1.X to support iOS version later than 15.2 with Xcode 13.2.1.

But if you can get it to work and support it yourself more power to you. I can’t recommend doing that in good conscience.

1 Like