Element source different on iOS 13 device

Hi,

For the same element on the same appversion I see a different source depending on the device I use. The text element is part of the XCUIElementTypeNavigationBar

On iOS 13 the element = XCUIElementTypeStaticText
On iOS 12 the element = XCUIElementTypeOther

Any idea what causes this and how to handle this issue ?

Kr,
Dwight

How about reporting it to Apple?

@ManDD its a common issue. I struggle with it using appium annotations with java-client.

Even we had same issue with navigation bar title.

On iOS 13 the element = XCUIElementTypeStaticText
On iOS 12 the element = XCUIElementTypeOther

I tried changing in my swift code in Xcode (iOS app), none are working

Suppose if your DOM is as follows

On iOS 13 : @iOSFindBy(xpath = “//XCUIElementTypeStaticText[@name=‘some name’]”)
On iOS 12 : @iOSFindBy(xpath = “// XCUIElementTypeOther[@name=‘some name’]”)

Try to find your elemen like this in both OS versions: @iOSFindBy(xpath = “//*[@name=‘some name’]”)