screenshot
Take a screenshot of an iOS simulator by supplying its UDID. The image is saved as a .png or .jpg file, returning the file path and byte size.
Instructions
Takes a screenshot of an iOS simulator. Returns the saved file path and byte size. Does NOT return base64 to keep payload small. saveTo defaults to a .png file in os.tmpdir().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Simulator UDID | |
| saveTo | No | Destination file path (must end .png or .jpg). Defaults to a tmp file. |