Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_selection(-1, -1) unsuccessful on android 10 on some pop up view #943

Open
mayfu opened this issue Nov 4, 2021 · 0 comments
Open

set_selection(-1, -1) unsuccessful on android 10 on some pop up view #943

mayfu opened this issue Nov 4, 2021 · 0 comments

Comments

@mayfu
Copy link

mayfu commented Nov 4, 2021

on Android 10, if execute clear_text_in() or enter_text() in a pop up view, it failed with below error

irb(main):015:0> set_selection(-1, -1)
Traceback (most recent call last):
14: from /Users/may/.rbenv/versions/2.7.1/bin/irb:23:in <main>' 13: from /Users/may/.rbenv/versions/2.7.1/bin/irb:23:in load'
12: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/irb-1.2.3/exe/irb:11:in <top (required)>' 11: from (irb):14 10: from (irb):15:in rescue in irb_binding'
9: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/calabash-android-0.9.22/lib/calabash-android/text_helpers.rb:69:in set_selection' 8: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/calabash-android-0.9.22/lib/calabash-android/operations.rb:93:in perform_action'
7: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/calabash-android-0.9.22/lib/calabash-android/operations.rb:456:in perform_action' 6: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/2.7.0/timeout.rb:110:in timeout'
5: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/2.7.0/timeout.rb:33:in catch' 4: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/2.7.0/timeout.rb:33:in catch'
3: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/2.7.0/timeout.rb:33:in block in catch' 2: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/2.7.0/timeout.rb:95:in block in timeout'
1: from /Users/may/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/calabash-android-0.9.22/lib/calabash-android/operations.rb:467:in `block in perform_action'
RuntimeError (Action 'set_selection' unsuccessful: Unable to set selection. Make sure that the input element has focus.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant