activities
latest
false
UiPath logo, featuring letters U and I in white
UI Automation Activities
Last updated Oct 28, 2024

Take Screenshot Part

UiPath.MobileAutomation.Activities.TakeScreenshotPart

Description

Takes a screenshot of a predefined location on the mobile device screen with starting and ending points.

Use case

Use the Take Screenshot Part activity to capture a rectangle-shaped screenshot on your mobile device screen. For example, you can use the Tesseract OCR activity to extract the text from the mobile device screen, as shown in the following screenshot.

Make sure to define the following properties:

  • Image in both Take Screenshot Part and Tessarect OCR.
  • Text for the Tesseract OCR output (e.g., outputText) and its corresponding variable as String in Data Manager.


Project compatibility

Windows - Legacy | Windows

Configuration

Designer panel
  • Indicate Region - indicate the part of the mobile device screen that you want to take a screenshot of.
  • CoordinatesType - Choose how to set the target coordinates. You can select one of the following:
    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
  • EndPointX - Set a screenshot ending point for your X axis on the device screen.
  • EndPointY - Set a screenshot ending point for your Y axis on the device screen.
  • StartPointX - Set a screenshot starting point for your X axis on the device screen.
  • StartPointY - Set a screenshot starting point for your Y axis on the device screen.
Properties panel
Common
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.
    Note: If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.
  • DelayAfter - Delay time (in seconds) after executing the activity. The default value is 0.3 seconds.
  • DelayBefore - Delay time (in seconds) before the activity begins performing any operations. The default value is 0.2 seconds.
  • DisplayName - The display name of the activity.
  • Timeout - specifies the amount of time (in seconds) to wait for a specified element to be found before an error is thrown. The default value is 30 seconds.
Input
  • CoordinatesType - Choose how to set the target coordinates. You can select one of the following:
    • PhysicalPixels - Use this option for workflows using a single device. Since the indication corresponds to actual pixels on the screen, it's different for each device.
    • DeviceIndependentPixels - Use this option to run workflows on devices with similar density screens. Device-independent pixels means that you are indicating a target based on the pixel density of the selected screen area.
  • EndPointX - Set a screenshot ending point for your X axis on the device screen.
  • EndPointY - Set a screenshot ending point for your Y axis on the device screen.
  • StartPointX - Set a screenshot starting point for your X axis on the device screen.
  • StartPointY - Set a screenshot starting point for your Y axis on the device screen.
Misc
  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Output
  • Screenshot part - The screenshot part of the mobile device, stored in an Image object. This field supports only Image variables.
  • Description
  • Use case
  • Project compatibility
  • Configuration

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.