在 Android 上使用 JUnit 和 Espresso 截取整个屏幕

Jun*_*une 5 junit android android-espresso

我已经设置了 JUnit 和 Espresso 测试来截取应用程序的屏幕截图 - 类似于本文中描述的内容:https ://dev.to/serhuz/capturing-screenshots-on-android-with-espresso-and-junit-81f

但是,某些 Activity 的 Web 视图包含大量文本,导致屏幕出现大量滚动。

有没有办法使用 Espresso 截取整个屏幕的屏幕截图?