I’m using Appium 1.7.2 and automating a native application which is written in React. Not sure if anybody else is facing this issue but when I’m trying to get a text of an element in ios application, the text value is the same as accessibility label, value, name and not giving me the actual text that is visible on the application.
We are using accessibilityLabel’s to identify elements and we can reach the elements. The problem is last week we suddenly couldn’t get the text of the elements in ios application. On Android same elements can give the correct text but on ios it is as I said.
We’ve already tried the followings;
Roll back to previous version of react native
Using a testId to accessibilityLabel converter plugin
I can find the element but when I’m trying to get the text its the same as the accessibilityId, and in the both appium and xcode inspector it also shows all of the values are the same.
Thanks. Did you try to use the same Appium server version that you have been using before and see if problem persists. or use the latest latest version of Appium server
Is anyone got Solution for this question.I am also having the same issue. [React Native App on ios, element has the same value for name, values, text, accessibilityLabel etc].So not able to get text from element. Any one have solution/workaround?
The issue arises in Appium when the navigation tree reaches 5 nested navigators on iOS. Instead of being able to access the content of the current page, it returns a single XCUIElementTypeOther element. This problem is an open issue in Appium.
Simply including “appium:settings[snapshotMaxDepth]”: 70 in the JSON settings before initiating the session solved my problem.