+54 911 66509220

Blog

Blog
10 Jun 2015

Calabash – Paso Predefinido: Gestures

/
Creado por
/
Comentarios0

Gestures

Then /^I swipe left$/
Swipes left.

Then /^I swipe right$/
Swipes right.

Then /^I scroll down$/
Scrolls down.

Then /^I scroll up$/
Scrolls up.

Then /^I select “([^\”]*)” from the menu$/ do |identifier|
Opens the menu by simulating pressing the menu button and then selects a menu item marked by the specified identifier.

Then /^I drag from (\d+):(\d+) to (\d+):(\d+) moving with (\d+) steps$/ do |from_x, from_y, to_x, to_y, steps|
Drags from one point on the screen to another.

Note: x:y co-ordinates are expressed as percentages of the screen width:height

Fuente: github.com/calabash

 

Leave a Reply

Your email address will not be published.

* Copy This Password *

* Type Or Paste Password Here *

24,798 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.