2016-06-16 18 views

答えて

0

addUIInterruptionMonitorUIAlertControllerに対応させてXCTestに処理することができます。

let handler = addUIInterruptionMonitor(withDescription: "alert handler") { (alert: XCUIElement) -> Bool in 
    let ok = alert.buttons["OK"] 
    XCTAssertTrue(ok.exists, "OK button doesn't exist") 
    ok.tap() 
} 
+0

私のために働いていません。一度確認して確認できますか? –

関連する問題