Created
April 16, 2012 10:04
-
-
Save SpacyRicochet/2397422 to your computer and use it in GitHub Desktop.
Useful step definitions for calabash-ios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'calabash-cucumber/calabash_steps' | |
Then /^I should see the keyboard$/ do | |
res = element_exists( "keyboardAutomatic" ) | |
if not res | |
screenshot_and_raise "Expected keyboard to be visible." | |
end | |
end | |
Then /^I should not see the keyboard$/ do | |
res = element_exists( "keyboardAutomatic" ) | |
if res | |
screenshot_and_raise "Expected keyboard to not be visible." | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment