Skip to main content
Capture a screenshot of a webpage
Bassem Khalifa avatar
Written by Bassem Khalifa
Updated over 11 months ago

Take a screenshot of a specific element or entire webpage on a website.

Application

  • Web Process Automation

Inputs (what you have)

Name

Description

Data Type

Required?

Example

Browser session ID

The unique identifier of the browser instance. Can be retrieved from "Open a browser session" Wrk Action

Text (Short)

Yes

fb9bc380-146c-420e-9130-50ce93614e05

Screenshot type

Type of screenshot to take

Pre-defined Choice List

Yes

Full page

Selection method

The method you will use to identify the element you want to take a screenshot of

Pre-defined Choice List

No

CSS Selector

Element identifier

The selector of the element you want to take a screenshot of

Text(Long)

No

#submit-button

Image type

Format the image should be saved in.

Defined Choice List

No

png

Omit background?

Hides the default white background and allows capturing screenshots with transparency

True/False

No

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

Name

Description

Data Type

Required?

Example

Screenshot

Screenshot of the website

File

Yes

Unsuccessful message

If unsuccessful, a message stating what went wrong

Text (Long)

Yes

Outcomes

Name

Description

Success

This status is selected in the event that a screenshot was successfully captured.

No Result

This status is selected in the event of the following scenario:

  • Unable to find the requested element

Impossible to complete

This status is selected in the event of the following scenario:

  • Unable to connect to the session for some reason

  • The screenshot type is selector but no selector is specified

Requirements

  • N/A

Did this answer your question?