xcode: Timestamped Event Matching Error: Failed to find matching element

后端 未结 3 955
离开以前
离开以前 2021-01-03 17:17

I\'m trying to record some XCUITesting functions. I get this error.

Timestamped Event Matching Error: Failed to find matching element

Is t

3条回答
  •  悲哀的现实
    2021-01-03 18:11

    Try manipulating with items isAccessibilityElement property. As far as I know containers like tableView should have this property set to NO in order to items contained inside them be accessible

    Quote from https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAccessibility_Protocol/#//apple_ref/occ/instp/NSObject/isAccessibilityElement :

    Assistive applications can get information only about objects that are represented by accessibility elements. Therefore, if you implement a custom control or view that should be accessible to users with disabilities, set this property to YES. The only exception to this practice is a view that merely serves as a container for other items that should be accessible.

提交回复
热议问题