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

后端 未结 3 952
离开以前
离开以前 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:23

    You need to add key path value to your UI elements as below. For an example, if you are using a tableview then select it in the Storyboard and then click on Identity Inspector. Now enter the following value isAccessibilityElement in the key and tick the checkbox as shown in the image below.

    Also if you can't tap on the UITableViewCell or the subclasses, then enable the Accessibility option as shown below.

    hereafter it should work just fine.

提交回复
热议问题