【发布时间】:2016-07-11 15:03:18
【问题描述】:
错误:UI 测试失败 - 未找到 MenuItems 的匹配项
UIPasteboard.generalPasteboard().string = constant.password
enterPasswordTextField.doubleTap()
// Tap the Paste button to input the password
app.menuItems["Paste"].tap()
我已经在我的测试用例中编写了这段代码,我什至尝试为模拟器禁用硬件键盘,但 doubletap() 函数仍然不起作用。
我正在使用 Xcode 7.3.1。
【问题讨论】:
标签: ios swift ios9 xcode-ui-testing