Skip to content

Instantly share code, notes, and snippets.

@SpacyRicochet
Created April 16, 2012 10:04
Show Gist options
  • Save SpacyRicochet/2397422 to your computer and use it in GitHub Desktop.
Save SpacyRicochet/2397422 to your computer and use it in GitHub Desktop.
Useful step definitions for calabash-ios
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