how to handle the popups from frank-cucumber

351 views Asked by At

I have this test case

Feature: Login to the app Scenario: Successful login

     Given ....................
     When ....................  
     And A popup menu is displayed with the with the message "Please enter ......"
     Then I press the "Enter" button

The first two steps have been resolved but the last 2 not at all because I have found how to handle the popups which comes from the iphone app.

any idea?

I am using frank-cucumber

1

There are 1 answers

0
dgmora On

You can use the steps for alerts provided here: https://github.com/moredip/Frank/blob/master/gem/lib/frank-cucumber/core_frank_steps.rb

Also note that there are some issues with Frank and iOS7 to touch alerts: https://github.com/moredip/Frank/issues/234