How do you access the text in a Navigation Bar for iOS?
Currently I can get the navigation bar IOSElement
with the following snippet:
IOSElement element = driver.findElementByClassName("XCUIElementTypeNavigationBar");
None of the methods on IOSElement
return the actual title of the navigation bar:
element.getText() // null
element.getTagName() // XCUIElementTypeNavigationBar
element.getId() // 0E4268B9-A13B-4BB4-958F-1092BFF73E23
created
Mar '18
last reply
Mar '18
- 1
reply
- 365
views
- 1
user