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按钮?