【问题标题】:how to handle the popups from frank-cucumber如何处理来自 frank-cucumber 的弹出窗口
【发布时间】: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

标签: ruby cucumber frank


【解决方案1】:

您可以使用此处提供的警报步骤: https://github.com/moredip/Frank/blob/master/gem/lib/frank-cucumber/core_frank_steps.rb

另外请注意,Frank 和 iOS7 的触摸警报存在一些问题: https://github.com/moredip/Frank/issues/234

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-03-22
    • 1970-01-01
    • 2021-01-11
    • 2018-01-31
    • 2012-11-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多