Sha256: 8c023cf30c71802a028625d10d08402660f2237a6bca2ed7334f284fa92da703

Contents?: true

Size: 979 Bytes

Versions: 1

Compression:

Stored size: 979 Bytes

Contents

Then /^I enter "([^\"]*)" as "([^\"]*)"$/ do |text, content_description|
  enter_text("android.widget.EditText contentDescription:'#{content_description}'", text)
end

Then /^I enter "([^\"]*)" into "([^\"]*)"$/ do |text, content_description|
  enter_text("android.widget.EditText {contentDescription LIKE[c] '#{content_description}'}", text)
end

Then /^I enter "([^\"]*)" into input field number (\d+)$/ do |text, index|
  enter_text("android.widget.EditText index:#{index.to_i-1}", text)
end

Then /^I enter text "([^\"]*)" into field with id "([^\"]*)"$/ do |text, id|
  enter_text("android.widget.EditText id:'#{id}'", text)
end

Then /^I clear "([^\"]*)"$/ do |name|
  clear_text("android.widget.EditText marked:'#{name}'}")
end

Then /^I clear input field number (\d+)$/ do |number|
  clear_text("android.widget.EditText index:#{number.to_i-1}")
end

Then /^I clear input field with id "([^\"]*)"$/ do |view_id|
  clear_text("android.widget.EditText id:'#{view_id}'")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calabash-android-0.5.0.pre1 lib/calabash-android/steps/enter_text_steps.rb