Forum General
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Calabash test click button

saravizsaraviz Member ✭✭

I'm new with calabash.
I'm trying to write a script to click a button but it doesn't work. Please, help me

Feature:

Feature: Click items

Scenario: Run whole app
Then I set screen to portrait
Then I take a screenshot
Then I take a screenshot
Then I tap 'ALERT' on homepage

Steps:

require 'calabash-android/calabash_steps'

Then /^I set screen to portrait$/ do
perform_action('set_activity_orientation', 'portrait')
end

Then /^I set screen to landscape$/ do
perform_action('set_activity_orientation', 'landscape')
end

Then /^I tap '([^\"]*)' on homepage$/ do |text|
performAction('press_button_with_text', 'text')
end

Sign In or Register to comment.