Skip to content

Instantly share code, notes, and snippets.

@hongkheng
Created August 28, 2017 05:38
Show Gist options
  • Save hongkheng/442caa309a3045093830b5c3ea15aef6 to your computer and use it in GitHub Desktop.
Save hongkheng/442caa309a3045093830b5c3ea15aef6 to your computer and use it in GitHub Desktop.
Calabash tips and tricks
# Asking user input into the cli
Then(/^I enter the sms otp$/) do
print "Enter the otp digit within 30 seconds?"
otp = STDIN.gets
wait_for_keyboard
keyboard_enter_text otp
sleep(STEP_PAUSE)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment