Skip to content
Browse files

Added steps to allow fill and select tables by accessibilaty

  • Loading branch information...
1 parent aca546a commit 94a5f854de1c1da4b670d7bac3ac784d2ac06892 @SergioEstevao committed Sep 4, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 calabash-cucumber/features/step_definitions/calabash_steps.rb
View
11 calabash-cucumber/features/step_definitions/calabash_steps.rb
@@ -46,6 +46,11 @@
sleep(STEP_PAUSE)
end
+Then /^I (?:press|touch) list item "([^\"]*)"$/ do |cell_name|
+ touch("tableViewCell marked:'#{cell_name}'")
+ sleep(STEP_PAUSE)
+end
+
Then /^I toggle the switch$/ do
touch("switch")
sleep(STEP_PAUSE)
@@ -68,6 +73,12 @@
## -- Entering text -- ##
+
+Then /^I enter "([^\"]*)" into the "([^\"]*)" field$/ do |text_to_type, field_name|
+ set_text("textField marked:'#{field_name}'", text_to_type)
+ sleep(STEP_PAUSE)
+end
+
Then /^I enter "([^\"]*)" into the "([^\"]*)" (?:text|input) field$/ do |text_to_type, field_name|
set_text("textField placeholder:'#{field_name}'", text_to_type)
sleep(STEP_PAUSE)

0 comments on commit 94a5f85

Please sign in to comment.
Something went wrong with that request. Please try again.