Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added macros to allow text fill and table cells selection using accessebility. #57

Merged
merged 1 commit into from

2 participants

@SergioEstevao

I think it should be part of the main variations of all actions that allow to use the accessibility labels.

@krukow krukow merged commit 59c219c into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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)
Something went wrong with that request. Please try again.