Feature: I want to test opening the about window.
Scenario: Choose About VyprVPN menu item, open the about box.
Given I launch the appThen the About VyprVPN menu item should exist
When I choose About VyprVPN menu itemThen I should be on the About VyprVPN screen
Then /^the About VyprVPN menu item should exist$/ do check_element_exists "view: marked:'About VyprVPN'"end
When(/^I choose About VyprVPN menu item$/) do simulate_click "view: marked:'About VyprVPN'"end
Then /^I should be on the About VyprVPN screen$/ do check_element_exists_and_is_visible "view:'NSWindow' marked:'My About Box Frank Accessibility Label'"end
--
You received this message because you are subscribed to the Google Groups "Frank" group.
To unsubscribe from this group and stop receiving emails from it, send an email to frank-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
LP-3275:frank_src brantm$ git statusOn branch masterYour branch is up-to-date with 'origin/master'.
nothing to commit, working directory cleanLP-3275:frank_src brantm$ grep -r "check_element_exists_and_is_visible" *example/Controls/features/step_definitions/table_deletion_steps.rb: check_element_exists_and_is_visible("view:'UITableViewCellDeleteConfirmationButton'")example/Controls/features/step_definitions/table_deletion_steps.rb: check_element_exists_and_is_visible("button marked:'#{button_mark}'")gem/lib/frank-cucumber/frank_helper.rb: def check_element_exists_and_is_visible( selector )LP-3275:frank_src brantm$ mate gem/lib/frank-cucumber/frank_helper.rb
Then I looked at the file gem/lib/frank-cucumber/frank_helper.rb. I don't know ruby, but it says:
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
LP-3275:frank_src brantm$ grep -r "check_element_exists_and_is_visible" *
example/Controls/features/step_definitions/table_deletion_steps.rb: check_element_exists_and_is_visible("view:'UITableViewCellDeleteConfirmationButton'")
example/Controls/features/step_definitions/table_deletion_steps.rb: check_element_exists_and_is_visible("button marked:'#{button_mark}'")
gem/lib/frank-cucumber/frank_helper.rb: def check_element_exists_and_is_visible( selector )
element_is_not_hidden( selector ).should be_true, "Could not find visible element matching selector (#{selector})"
def element_is_not_hidden(selector) matches = frankly_map( selector, 'FEX_isVisible' ) matches.delete(false) !matches.empty? end
- (BOOL)FEX_isVisible{ GFLog(@"FEX_isVisible called. Result: %@", self.isVisible ? @"YES" : @"NO"); return self.isVisible;}
FEX_isVisible called. Result: NO