Skip to main content
[Command] Take screenshot
Sophie avatar
Written by Sophie
Updated over a year ago

Definition and Usage

The Take screenshot command is used to instruct the workflow to take a screenshot of a specified element on a web page, a visible area on a web page, or an entire web page which would require scrolling down the page to display all areas.


Parameters Values

Set parameters

Parameter

Definition

Web page

Select a target web page. There are 2 commands that can be used to generate a web page variable:

  • Go to web page

  • Find web page

Capture

Choose the area to take a screenshot on

  • Specific web element

  • Visible area of the page

  • Entire web page

Element

Select the target element to take a screenshot of by capturing a new element or selecting from a previously saved element

Save to

In which folder the screenshot will be saved

Image format

Choose a format to proceed

  • PNG

  • JPEG

Set file name

Choose how to name the screenshot

  • Random file name

  • Customize file name

Save image path as

Name the variable generated by the parameters above

Advanced settings

Parameter

Definition

Wait element for

Wait for a specified amount of time (seconds) until the element appears

Error handling

Parameter

Definition

When error occurs

Select the action to be performed when an error occurs

  • Terminate the project

  • Ignore the error and execute the next command

  • Retry action


Example

The workflow below will go to rpa.octoparse.com on the built-in browser, save the webpage as a variable named RPA_Homepage, take a screenshot of "H1_DoLess_AutoMore", the visible area of the page, and the entire webpage of "RPA_Homepage", save the file to the designated folder with custom file name, and save the file path as variables.

You'll be able to find the 3 screenshots attached below in your designated folder.

The first screenshot:

The second screenshot:

The third screenshot:

Did this answer your question?