swift - 时间戳事件匹配错误: Failed to find matching element

标签 swift xcode xcode-ui-testing

我正在尝试在 Xcode 中生成一个 UItest。当我尝试滑动 UIview 时,我得到 一个错误:

Timestamped Event Matching Error: Failed to find matching element

error window

enter image description here

如果我尝试点击 UIView,也会发生这种情况。

最佳答案

您应该验证您正在滑动的 UIView 对象是否启用了“辅助功能”选项,例如:

enter image description here

关于swift - 时间戳事件匹配错误: Failed to find matching element,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36616891/

相关文章:

swift - 响应式(Reactive) cocoa 尝试图返回类型

ios - swift:下载百分比

ios - 使用 UIImageJPEGRepresentation 保存图像并用作 UIImage

ios - 如何更改表格行的高度以适合 UILabel

c++ - 在 Xcode 中链接库

swift - 尝试访问 IndexSet 中的某些元素

ios - Xcode, swift : alert not dismissing

ios - Xcode UI 测试 : staticText's label not updating as text is updated?

ios - UI 测试失败 - 未找到 MenuItems 的匹配项

objective-c - 如何从 XCUITest 检查 UISwitch 的开/关状态?