i upgraded from appium 1.22.3 to Appium 2.x and now i have the problem that i cant find accessibility ids in my native app. If i log driver.getSource() i only get the name of the elements, before the Appium Upgrade i used the ids for every element.
I use the IOSDriver, the strange thing is that when i inspect the elements with AppiumInspector there are the accessibility ids available.
Has anyone else the same problem?
My Capabilities:
“appium:platformName”: “iOS”
“appium:platformVersion”:“16.0”
“appium:deviceName”:“iPhone 13”
“appium:automationName”:“XCUITest”
“appium:app”:"/Users/home/myapp.zip"
You have two input elements on screen for username and passcode.
Better use search by element classname XCUIElementTypeTextField which return list.
Use first element in list for email and second for passcode.
There is something wrong. You may tap by coordinates for sure that should 100% work.
Possibly there is some race condition e.g. you tap while screen appears (in such case tap will not work).
To check the idea add a bit wait for sure. Log element center coordinates. Tap on them. Check that coordinates are correct.