Whether using UIAutomator (ios9.x, Appium 1.53) or XCUITest (ios10.x, Appium 1.6) automation works fine but I’m unable to get the value of a specific UIAStaticText element. Instead of the value displayed on screen (some name) I get value ‘challenge’.
The pagesource XML as the server json also do not contain the real displayed value (some name) so the question is: if not in xml or json is there any way to get the value at all?
Example of element in pagesource xml:
XCUIElementTypeStaticText name=“challenge” label=“challenge” value=“challenge” dom="" enabled=“true” valid=“true” visible=“true” hint="" path="/0/0/0/0/1/0/0/0/0/1/1" x=“188” y=“212” width=“139” height=“26”
Value ‘challenge’ is not the real value, the real value in App on screen is a random name like ‘Aleksei’
Getting the value with (element).text or with (element).GetAttribute(“value”) both always give ‘challenge’
Since this matches the value in XML I wonder if is it possible to get the real value at all since as far as I understand the selection options elementByName, elementByXpath etc just search the XML