+54 911 66509220

Blog

Blog
8 Jun 2015

Calabash – Paso Predefinido: Input steps

/
Creado por
/
Comentarios0

Input steps

Then /^I toggle checkbox number (\d+)$/ do |index|
Toggles the checkout with the specified index.

Then /^I long press “([^\”]*)”$/ do |text|
Long presses the view containing the specified text.

Then /^I long press “([^\”]*)” and select item number (\d+)$/ do |text, index|

This predefined step is deprecated

Long presses the view containing the specified text and selects the menu item with the specified index in the context menu that appears.

Then /^I long press “([^\”]*)” and select “([^\”]*)”$/ do |text, identifier|
This predefined step is deprecated

Long presses the view containing the specified text and selects the menu item marked by the specified identifier in the context menu that appears.

Given /^I set the date to “(\d\d-\d\d-\d\d\d\d)” on DatePicker with index “([^\”]*)”$/ do |date, index|
Finds the datepicker with the specified index and changes the date.

Given /^I set the time to “(\d\d:\d\d)” on TimePicker with index “([^\”]*)”$/
Given /^I set the “([^\”]*)” time to “(\d\d:\d\d)”$/
Finds the timepicker with the specified index and changes the time.

Given /^I set the “([^\”]*)” date to “(\d\d-\d\d-\d\d\d\d)”$/ do |content_description, date|
Finds the datepicker by content description and changes the date.

Then /^I enter “([^\”]*)” into input field number (\d+)$/ do |text, index|
Enters the specified text into the input field with the specified index.

Then /^I enter text “([^\”]*)” into field with id “([^\”]*)”$/ do |text, id|
Enters the specified text into the input field with the specified id.

Then /^I enter “([^\”]*)” as “([^\”]*)”$/ do |text, content_description|
Then /^I enter “([^\”]*)” into “([^\”]*)”$/ do |text, content_description|
Enters the specified text into the input field that has the specified content description.

Then /^I clear input field number (\d+)$/ do |index|
Clears the text of the input field with the specified index.

Then /^I clear “([^\”]*)”$/ do |identifier|
Clears the text of input fields marked by the identifier.

Then /^I clear input field with id “([^\”]*)”$/ do |id|
Clears the text of the input field with the specified id.

Then /^I select “([^\”]*)” from “([^\”]*)”$/ do |item_identifier, spinner_identifier|
Finds the spinner marked by the specified ‘spinner_identifier’ or has a childview marked by the specified ‘spinner_identifier’. It then selects the menu item marked by the specified ‘item_identifier’.
Fuente: github.com/calabash

 

Leave a Reply

Your email address will not be published.

* Copy This Password *

* Type Or Paste Password Here *

24,107 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.