theappbusiness / TABTestKit

Library designed to make writing and maintaining automated tests for iOS applications. This includes automation of bio-metrics and controlling of mock servers
MIT License
59 stars 13 forks source link

iOS 13 UILabels are always seen as `staticText` even if they're headers #42

Closed KaneCheshire closed 5 years ago

KaneCheshire commented 5 years ago

I've been trying to investigate this and it is seeming more and more like a bug in XCUI.

I can't even hide the label from XCUI by setting isAccessibilityElement to false, which suggest a bug to me.

KaneCheshire commented 5 years ago

Just got this error in Xcode:

Automation type mismatch: computed Other from legacy attributes vs StaticText from modern attribute. Input attributes and values: {
    "XC_kAXXCAttributeAutomationType" = 48;
    "XC_kAXXCAttributeElementBaseType" = UILabel;
    "XC_kAXXCAttributeElementType" = UILabel;
    "XC_kAXXCAttributeTraits" = 8590000128;
}
KaneCheshire commented 5 years ago

Possibly related:

https://stackoverflow.com/questions/58578338/ios-13-xcode-ui-test-automation-type-mismatch