Skip to content

Instantly share code, notes, and snippets.

@artikz
Created March 27, 2017 09:21
Show Gist options
  • Save artikz/c4e9d87820f9dad2a4bacab11a45692b to your computer and use it in GitHub Desktop.
Save artikz/c4e9d87820f9dad2a4bacab11a45692b to your computer and use it in GitHub Desktop.
import time
import uiautomator
device = uiautomator.Device("serial-number-of-first-device")
time.sleep(60)
device.screen.on()
device.screenshot("screenshot1.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment