Screeshot (driver.takeScreenshot()) is flacky

Hello, @Yeldar_Kossynbay
This is a know issue from Virtual Device.

Here is a workaround

you can use command line on simulator’s command line,

to take the screenshot, and take it back

adb shell

cd /data

gwsi-tool-screenshooter my.png

exit

adb pull /data/my.png