0
在iOS 7之後我們在使用葫蘆進行UIAlertView驗證時遇到了問題。在iOS7中使用UIAlertView發現葫蘆
現在我能夠檢測使用
wait_for_elements_exist(["view:'_UIModalItemRepresentationView'"], :timeout => 20)
query("view:'_UIModalItemRepresentationView' label marked:'#{text}'",).empty?
我從https://gist.github.com/seanoshea/7613671
而在此前的想法警報消息(在iOS 6中),我們能夠探測到的消息和標題明確像這樣
title = query("view:'UIAlertView'",:title).first
msg = query("view:'UIAlertView'",:message).first
有沒有什麼辦法可以在iOS7中做到這一點? 「坦率」球員做同樣的我認爲https://github.com/moredip/Frank/pull/262。
注意:jmoody Plese幫助我們在葫蘆自動化中使用此iOS 7警報。
我們意識到這個問題。這是(我們相信)UIAutomation中的一個錯誤。 https://github.com/calabash/calabash-ios/issues/215我們建議您提交一份雷達。與此同時,[Chathura Palihakkara](http://stackoverflow.com/users/634678/chathura-palihakkara)發佈的代碼似乎是解決問題的方法。雖然他在紅寶石中得到了-1的CamelCase ...;) – jmoody
對不起CamelCase。這是我第一次遇到紅寶石:)。 –