Espresso: Appnotidleexception
I am continuously getting this error when I land on a page. What could be the solution to this? android.support.test.espresso.AppNotIdleException: Looped for 4539 iterations over 6
Solution 1:
It might occur due to any UI element which is creating itself infinitely. For example, you have a Custom ProgressBar or Snackbar which is set to invisible/gone in xml and you are setting it visible in java code. But it might re-paint itself in invisible/gone state also due to ill-written code. So, go through any Custom UI elements as well if you have any.
Solution 2:
It's very likely because you didn't turn off the following 3 settings in you developer options:
- Window animation scale
- Transition animation scale
- Animator duration scale
For more informations read the tips to set up Espresso.
If that is not the case something seems to be interacting with your screen while the test is running.
Post a Comment for "Espresso: Appnotidleexception"