3
如何在Alert有Yes和No Buttons時單擊警報消息按鈕。如何選擇在IOS的警報消息中選擇哪個按鈕UIAutomation
,我嘗試的方式,如:
target.frontMostApp().alert().buttons()["buttonName"].tap();
target.frontMostApp().alert().buttons()["index"].tap();
而且也UI自動化點擊工具欄中的按鈕,並顯示以下SYN稅:當我做
target.frontMostApp().alert().cancelButtons().tap();
和沒有工作它手動點擊默認button.and也嘗試用下面的方式也。
target.frontMostApp().alert().cancelButtons()["index/buttonname"].tap();
target.frontMostApp().alert().defaultButtons()["index/buttonname"].tap();
如何從Alert消息中選擇Yes按鈕或NO按鈕?