1
我正在使用名爲「Frank」的自動化框架測試iOS應用程序爲什麼我不能觸摸按鈕,警報視圖,之後我看到警報?
並且在我需要覆蓋的應用程序中彈出一些警報。
我已經寫了下面我有文件:
Scenario: I input wrong username and password, I should see the log failed alert. ... When I wait to see "Log failed" Then I touch the button marked "OK"
不幸的是,這個代碼將無法正常工作,但坦率(黃瓜)將標誌着觸摸的「OK」按鈕,通過測試的步驟,但實際上,按鈕不會被觸摸。
我必須做這樣的:
Scenario: I input wrong username and password, I should see the log failed alert. ... When I wait to see "Log failed" #Wait for 1 sec in order to touch the button. And I wait for 1 second Then I touch the button marked "OK"
我不是你正在使用的框架的專家,但它可能是觸摸發生,而UIAlertView中的動畫仍然在運行,並在當時的按鈕還沒有動心了。 –
@ValerioSantinelli我同意你的看法,這是我最好的猜測。如果你願意,你可以發表你的評論作爲答案,我會接受它。 –