Capture Mobile Screen
Command description
- Connect the mobile device before running this command.
- Capture the entire mobile screen, not a single element.
- Choose the save directory and file name.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Mobile Device Object | Phone | Connected mobile object |
| Folder Location | str | The absolute path of the destination folder to save the screenshot, such as C:\xx |
| File Name Pattern | enum | Random File Name, Custom File Name |
| Custom File Name | str | Screenshot file name; required only when File Name Pattern is Custom File Name |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Screenshot File Path | str | Absolute path of the saved screenshot file |
Type definition reference
Operation steps
Connect the mobile device → Set the save path → Run the command → View the screenshot
Example
tip
Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device