Articles → UiPath → Take Screenshot Activity In Uipath

Take Screenshot Activity In Uipath






Purpose





Example




  1. Take a screenshot of the UIElement using the "Take Screenshot" activity.
  2. Save the screenshot using the "Save Image" activity.



Screenshot Of The Uielement




  1. Drag and drop the "Take Screenshot" activity.
  2. Select the UIElement by clicking the "Indicate on screen" link.
  3. Picture showing the UIElement selected in the take screenshot activity
    Click to Enlarge

  4. Create a variable of type "UiPath.Core.Image".
  5. Picture showing the Screenshotimage variable of type UiPath.Core.Image
    Click to Enlarge

  6. Set the value of the "Screenshotimage"variable.
  7. Picture showing setting the output of the take screenshot activity to the Screenshotimage variable
    Click to Enlarge



Save The Screenshot




  1. Drag and drop the "Save Image" activity.
  2. Specify the image and the output path.
  3. Picture showing the SaveImage activity for saving the image on the local drive
    Click to Enlarge



Output


Picture showing the output of the take screenshot activity in uipath
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Saturday, January 9, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250