【发布时间】:2014-01-09 19:17:22
【问题描述】:
我有这个测试用例
功能:登录应用程序 场景:登录成功
Given ....................
When ....................
And A popup menu is displayed with the with the message "Please enter ......"
Then I press the "Enter" button
前两个步骤已经解决,但后两个根本没有,因为我已经找到了如何处理来自 iphone 应用程序的弹出窗口。
有什么想法吗?
我正在使用弗兰克黄瓜
【问题讨论】:
-
当您打开弹出窗口时,您应该运行
frank inspect来检查您的应用程序的视图层次结构。我想您会发现弹出窗口中的按钮不是标准的 UIButton。一旦你弄清楚它是什么,你就需要制作一个视图选择器来定位它。 testingwithfrank.com/selector_syntax.html