Hello! I’m using Espresso for automated tests in Android, using the UiDevice takeScreenshot() method.
However, some of my screenshots work and some of them don’t. I’d say the majority of the screenshots I get only show the home screen.
Is there a reason for this? Is it possible that the tests are running so fast that the app is closing before the screenshot is taken?
Any help is appreciated, thanks!