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

All WebView methods must be called on the same thread. #885

Open
aluckin3 opened this issue Jul 20, 2018 · 2 comments
Open

All WebView methods must be called on the same thread. #885

aluckin3 opened this issue Jul 20, 2018 · 2 comments

Comments

@aluckin3
Copy link

map webView css:'button[type="submit"]' {textContent CONTAINS 'Sign inContinue'}, query failed because: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Throwable: A WebView method was called on thread 'Thread-110'. All WebView methods must be called on the same thread. (Expected Looper Looper (main, tid 2) {24a3362} called on null, FYI main Looper is Looper (main, tid 2) {24a3362})
(RuntimeError)
./step_definitions/android/screens/base.rb:48:in wait_until_element_disappear' ./step_definitions/android/screens/base.rb:13:in block (3 levels) in log_me'
./step_definitions/android/screens/base.rb:134:in pcloud_finish_login' ./step_definitions/android/screens/dropbox_login_page.rb:28:in sign_in'
./step_definitions/android/screens/base.rb:13:in block (3 levels) in log_me' ./step_definitions/pcloud_steps.rb:14:in /^I login to (GoogleDrive|Dropbox|OneDrive)$/'
features/sync/trigger.feature:34:in And I login to Dropbox' features/sync/trigger.feature:17:in And I login to '

Is it possible to avoid this problem?

@AndreyMitsyk
Copy link
Contributor

Interesting... Please provide some info: Which Android version was used for this test run? Is it Android P (api 28) on Emulator/physical device? One more question: are your test scenarios trying to enter some text on webview?

@aluckin3
Copy link
Author

This is api 26, on emulator. Yes, application is about api of services and application.

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

2 participants