Closed gchen36 closed 7 years ago
The issue is related to writeImageToFile(). I wanted to get the ad image which locates at ((0, 949), (1794, 1080)); however, I got the enclosed image file.
Have you tried a real device? I think the problem might be that the emulator is in portrait mode while the application is in landscape. On a real device, this might not happen.
I just tested by commenting out image.crop(box).save(filename, _format) in viewclient.py, the issue comes from uiautomator.takeScreenshot() on genymotion. The landscrape screenshot (1920x1080) has been compressed into 1080x1920.
Do you have an example you could share?