Skip to main content

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 parametersInput parameter typeDescription
Mobile Device ObjectPhoneConnected mobile object
Folder LocationstrThe absolute path of the destination folder to save the screenshot, such as C:\xx
File Name PatternenumRandom File Name, Custom File Name
Custom File NamestrScreenshot file name; required only when File Name Pattern is Custom File Name

Command Output Parameters​

Output parametersOutput parameter typeDescription
Screenshot File PathstrAbsolute 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

FAQ​

See Mobile Automation FAQ