facebook / screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests
http://facebook.github.io/screenshot-tests-for-android
Apache License 2.0
1.74k stars 229 forks source link

Is it possible to hideout dynamic content on the screen before capturing screenshot #312

Open saranyas72 opened 2 years ago

saranyas72 commented 2 years ago

Is it possible to hideout dynamic content on the screen before capturing screenshot. Eg. Date and time in screen or battery indicator

sergio-sastre commented 2 years ago

@saranyas72 I believe you need something like this: https://gist.github.com/hvisser/e716105f4e3cf2908ea463dbdb50679c