Save Image

Created by akaBot Support, Modified on Tue, 19 Nov, 2024 at 5:34 PM by akaBot Support

DescriptionThis is the "Save Image" activity, which saves an image file to the specified path.


TABLE OF CONTENTS


1. Activity program name

RCA.Activities.Core.SaveImage


2. Description

Up to Studio Version 2.0.2.0


Quick Access: Toolbox > Core > Save Image


From Studio Version 2.0.3.0


Quick Access: Toolbox > Core > Files > Save Image


This activity saves an image file to the specified path.

  • Tested in akaBot Studio Version: 2.2.0.5
  • Some wording or features may differ depending on the version.

3. Properties


A detailed list of properties follows.


Property item
Property name
Input field
Description
Other

PublicCheckbox

The variables and arguments within the activity are written to the log file and pushed to Center. (For details, refer to "Public Property Items.")

Display nameInput Value (String type)

Reflected as the activity name in the Designer panel.

Input

ImageInput Value (String type)

Specify the variable or argument for the image to be saved. This field is required.

Note: Ensure to input all necessary details.

FIle nameInput Value (String type)

Specify the path of the image file you want to save.


For example, you can save an image by using an Image-type variable output from the "Browser > Take Screenshot" activity and specifying that variable in the "Image" property of the "Core > Save Image" activity.


4. How to use


Here, we will introduce how to capture a screenshot of a website using the "Browser > Take Screenshot" activity and save the captured image to a specified path using the "Core > Save Image" activity.


First, drag and drop the "Browser > Open Browser" activity from the toolbox onto the designer panel and input the URL of the website you want to capture.

For more details, refer to the "Open Browser" documentation.



Drag and drop the "Browser > Take Screenshot" activity from the toolbox onto the designer panel, and select the target image by specifying the element.

For more details, refer to "How to use Selectors".



In this example, the specified target is the "Home" section.





Set the Img variable (of Image type) in the "Output > Screenshot" property.
For more details, refer to "Creating Variables".



Drag and drop the "Core > Save Image" activity from the toolbox onto the designer panel.


To save the image within the project folder, set the following:

  • In the "Input > Image" property, input the variable Img.
  • In the "File Name" property, input "ImgResult.jpg".



Click "Home > Start" or press the F5 key to execute the process. If it completes successfully, you can confirm that "ImgResult.jpg" has been saved in the project folder.

Here is the "ImgResult.jpg" image saved during this process.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article