有时,在Xcode中的UITests中,编译器在加载和显示按钮之前尝试点击它。然后出现一个像no matched found for...这样的问题。但解决这一问题的简单方法是:
sleep(1) //wait 1 second and give `mybutton` time to load and be accessible for uitests
我正在编写UITests,最近更新到了Xcode9。let deleteString = stringValue.characters.map { _ in XCUIKeyboardKeyDelete }.joined(separator: "")Type of expression is ambiguous without more context
它位于一个函数中,用于在UITest期间清除UITextField中