vitorsalgado
10/2/2017 - 10:21 PM

Calabash

Calabash


require 'calabash-android/calabash_steps'

Then /^I login to Facebook with "(.*)" email and "(.*)" password$/ do |email, pass|
  enter_text("webview css:'input[name=\"email\"]'", email)
  enter_text("webview css:'input[name=\"pass\"]'", pass)
  touch "webview css:'button[name=\"login\"]'"
end

Then /^I press the html button "(.*)"$/ do |name|
  touch "webview css:'button[name=\"" + name + "\"]'"
end