Sha256: 7f43d424982689a7867fe35bacb7f02f1ed6d90cca51acb90d5ac106ee7e4f39

Contents?: true

Size: 1.82 KB

Versions: 119

Compression:

Stored size: 1.82 KB

Contents

Then /^I see the text "([^\"]*)"$/ do |text|
  performAction('assert_text',text, true) 
end

Then /^I see "([^\"]*)"$/ do |text|
  performAction('assert_text', text, true) 
end

Then /^I should see "([^\"]*)"$/ do |text|
  performAction('assert_text', text, true) 
end

Then /^I should see text containing "([^\"]*)"$/ do |text|
  performAction('assert_text', text, true) 
end



Then /^I should not see "([^\"]*)"$/ do |text|
  performAction('assert_text', text, false) #second param indicated that the text should _not_ be found
end


Then /^I don't see the text "([^\"]*)"$/ do |text|  
  performAction('assert_text', text, false) #second param indicated that the text should _not_ be found
end

Then /^I don't see "([^\"]*)"$/ do |text|  
  performAction('assert_text', text, false) #second param indicated that the text should _not_ be found
end

# This step is more of an example or macro to be used within your own custom steps
# Generally, assert_view_property takes 3 args, but for if 'property'='compoundDrawables', the next arg should be 'left'/'right'/'top'/'bottom', followed by the expected drawable ID.
# @param view_id - the name of the view, eg: R.my_view_id
# @param property - eg: 'visibility' (visible/invisible/gone), 'drawable' (expected drawable ID) 
Then /^the view with id "([^\"]*)" should have property "([^\"]*)" = "([^\"]*)"$/ do | view_id, property, value |
  # get_view_property is also available: performAction( 'get_view_property', 'my_view', 'visibility') 
  performAction( 'assert_view_property', view_id, property, value )
end

Then /^the "([^\"]*)" activity should be open$/ do | expected_activity |
  actual_activity = performAction('get_activity_name')['message']
  raise "The current activity is #{actual_activity}" unless( actual_activity == expected_activity || actual_activity == expected_activity + 'Activity' )
end

Version data entries

119 entries across 119 versions & 2 rubygems

Version Path
calabash-android-0.4.20.1 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.22.pre4 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.22.pre3 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.22.pre1 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.21 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.20 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.19 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.19.pre4 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.19.pre3 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.19.pre2 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.19.pre1 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.18 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.16 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.15.pre2 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.15.pre1 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.14 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.13 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.12 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.11 lib/calabash-android/steps/assert_steps.rb
calabash-android-0.4.10.pre5 lib/calabash-android/steps/assert_steps.rb