Open
Description
Currently I am trying to input a password in a textfield placed on a springboard alert. But command keyboard_enter_text() throws with "Keyboard is not visible", however keyboard is present on screen. Auto dismiss springboard alerts is disabled.
I looked into the code and it seems that query for keyboard into docked_keyboard_visible? function fails to get the right value.
The setup used for testing is:
- iPhone 7 (iOS 13.3)
- Xcode 11.3
- Ruby 2.6.3 (with rbenv)
- calabash-cucumber-0.21.10
- run_loop-4.5.2
- macOS 10.14
calabash-ios 0.21.10> keyboard_enter_text('password')
DEBUG: HTTP: post http://192.168.102.201:27753/1.0/dismiss-springboard-alerts {:retries=>200, :timeout=>20}
DEBUG: HTTP: post http://192.168.102.201:27753/1.0/dismiss-springboard-alerts {:retries=>200, :timeout=>20}
DEBUG: HTTP: post http://192.168.102.201:27753/1.0/dismiss-springboard-alerts {:retries=>200, :timeout=>20}
DEBUG: HTTP: post http://192.168.102.201:27753/1.0/dismiss-springboard-alerts {:retries=>200, :timeout=>20}
INFO: Embed is not available in this context. Will not embed.
Traceback (most recent call last):
8: from /Users/ppalma/.rbenv/versions/2.6.3/bin/irb:23:in `<main>'
7: from /Users/ppalma/.rbenv/versions/2.6.3/bin/irb:23:in `load'
6: from /Users/ppalma/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/irb-1.2.1/exe/irb:11:in `<top (required)>'
5: from (irb):1
4: from (irb):2:in `rescue in irb_binding'
3: from /Users/ppalma/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/core.rb:743:in `keyboard_enter_text'
2: from /Users/ppalma/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/keyboard_helpers.rb:89:in `expect_keyboard_visible!'
1: from /Users/ppalma/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/calabash-cucumber-0.21.10/lib/calabash-cucumber/failure_helpers.rb:75:in `screenshot_and_raise'
RuntimeError (Keyboard is not visible)
calabash-ios 0.21.10>
Metadata
Metadata
Assignees
Labels
No labels