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.