Sha256: 31cafe00f4bc48dd081836e9790b593f517ad56afd11c7584ae1a00279181157
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
Then /^I wait for progress$/ do wait_for_element_do_not_exist("android.widget.ProgressBar", :timeout => 60) end Then /^I wait$/ do sleep 2 end Then /^I wait for (\d+) seconds$/ do |seconds| sleep(seconds.to_i) end Then /^I wait for 1 second$/ do sleep 1 end Then /^I wait for a second$/ do sleep 1 end Then /^I wait for "([^\"]*)" to appear$/ do |text| wait_for_text(text) end Then /^I wait up to (\d+) seconds for "([^\"]*)" to appear$/ do |timeout, text| wait_for_text(text, timeout: timeout.to_i) end Then /^I wait to see "([^\"]*)"$/ do |text| wait_for_text(text) end Then /^I wait up to (\d+) seconds to see "([^\"]*)"$/ do |timeout, text| wait_for_text(text, timeout: timeout.to_i) end Then /^I wait for the "([^\"]*)" button to appear$/ do |text| wait_for_element_exists("android.widget.Button marked:'#{text}'"); end Then /^I wait for the view with id "([^\"]*)" to appear$/ do |id| wait_for_element_exists("* id:'#{id}'", {:timeout => 60}) end Then /^I wait for the "([^\"]*)" view to appear$/ do |text| wait_for_element_exists("* marked:'#{text}'") end Then /^I wait for the "([^\"]*)" screen to appear$/ do |text| wait_for_activity(text) end Then /^I wait upto (\d+) seconds for the "([^\"]*)" screen to appear$/ do |timeout, text| wait_for_activity(text, timeout: timeout.to_i) end Then /^I wait up to (\d+) seconds for the "([^\"]*)" screen to appear$/ do |timeout, text| wait_for_activity(text, timeout: timeout.to_i) end # @param - the "tag" associated with the tab, or the text within the tab label Then /^I wait for the "([^\"]*)" tab to appear$/ do | tab | wait_for do query("android.widget.TabWidget descendant TextView {text LIKE[c] '#{tab}'}", :isSelected).first end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calabash-android-0.5.0.pre1 | lib/calabash-android/steps/progress_steps.rb |