-
Notifications
You must be signed in to change notification settings - Fork 52
Use UIAutomator to get system Screenshot #75
Comments
Great idea! Also current implementation doesn't capture shadow below the toolbar. |
Yea, seems like |
Thanks for the reports and suggestions, all. This is definitely on our short list of things to address! |
We had also to workaround the issue by coping some private code from the Screengrab file and the use UiAutomator to take the screenshot. In the end the actual screenshot method looks like this:
while screenshotFile was taken from the Screengab file to match the convetion, this way the tool it will happily take the UiAutomator screenshot instead of the own ones:
|
Hi, I following suggestion simplysoft(previous message). Could you help me? |
This issue was migrated to fastlane/fastlane#2080. Please post all further comments there.
|
Screengrab looks awesome, but there is just a little quirk, the systembar is not shown (except for the color), and also the button bar (of buttonless devices like nexus) are only a black rectangle.
I don't know if you have some ways to workaround that (like adding the bar manually using command like convert), but if you don't, you could use UIAutomator.
It provides a method takeScreenshot(File) from the class UIDevice that take a complete screenshot of the device, system bar and button bar included.
It requires a minSdk 18, but it's easy to work around that (using a product flavor, for example).
The text was updated successfully, but these errors were encountered: