-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
chore: Catch only NoMatchingViewException, do not swallow AppNotIdleException #589
Conversation
I tend to think this is an expected behavior. Where this 60 seconds timeout is set? Is it the implicit timeout? |
I don't think. In all other cases apart from findElement, we throw this exception to the user |
Yes, this makes sense to me now, thanks for the explanation. Lets only check this exception now. Also, we could add the list of running threads to add more details about what exactly is blocking Espresso (and to make the exception message more helpful): |
Oh yes, good idea. I will do it soon |
Sometimes, the find_elements take 60 seconds and returns empty results.
This is because app is not idle and we swallow this exception and wait for 60 seconds of a timeout to finish
We must not swallow this AppNotIdleException