Capture Mobile Element
Command description
Capture a screenshot of a specified mobile element and save it in a chosen folder.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Mobile Device Object | Phone | Connected mobile object |
| Mobile Element | PhoneElement or str (captured element UID, not element name, not ms-rpa-id) | Select a captured mobile element or an element returned by Get Mobile Element, Get Similar Mobile Elements, or Get Related Mobile Elements |
| 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 |
| Element Wait Timeout | number | Maximum time to wait for the element to appear, in seconds; an error is reported when the timeout expires |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Screenshot File Path | str | Absolute path of the saved screenshot file |
Type definition reference
Related links
Example
tip
Enable Developer options on the mobile device, then connect it to the computer with a USB cable. See Connect Mobile Device