【发布时间】:2018-07-04 03:52:35
【问题描述】:
let webViewsQuery = app.webViews
let emailOrPhoneTextField = webViewsQuery/*@START_MENU_TOKEN@*/.textFields["Email or phone"]/*[[".otherElements[\"Sign in – Google accounts\"].textFields[\"Email or phone\"]",".textFields[\"Email or phone\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/
let exists = NSPredicate(format: "exists == TextField")
expectation(for: exists, evaluatedWith: emailOrPhoneTextField, handler: nil)
waitForExpectations(timeout: 30, handler: nil)
emailOrPhoneTextField.tap()
异步等待失败:超过 30 秒的超时,未实现预期:“通过 fastlane 扫描运行时,预期谓词
exists == 1用于对象“电子邮件或电话”TextField”
【问题讨论】:
标签: xcode8 xcode-ui-testing fastlane xcuitest