Skip to main content

Capture a screenshot of a webpage

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

Application

  • Web Process Automation

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Browser session IDThe unique identifier of the browser instance. Can be retrieved from "Open a browser session" Wrk ActionText (Short)Yesfb9bc380-146c-420e-9130-50ce93614e05
Screenshot typeType of screenshot to takePre-defined Choice ListYesFull page
Selection methodThe method you will use to identify the element you want to take a screenshot ofPre-defined Choice ListNoCSS Selector
Element identifierThe selector of the element you want to take a screenshot ofText(Long)No#submit-button
Image typeFormat the image should be saved in.Defined Choice ListNopng
Omit background?Hides the default white background and allows capturing screenshots with transparencyTrue/FalseNo

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.

See Working with Wrk’s Selection Methods in Web Automation for additional details on configuring your selectors

Outputs (what you get)

NameDescriptionData TypeRequired?Example
ScreenshotScreenshot of the websiteFileYes
Unsuccessful messageIf unsuccessful, a message stating what went wrongText (Long)Yes

Outcomes

NameDescription
SuccessThis status is selected in the event that a screenshot was successfully captured.
No ResultThis status is selected in the event of the following scenario:Unable to find the requested element
Impossible to completeThis status is selected in the event of the following scenario:Unable to connect to the session for some reasonThe screenshot type is selector but no selector is specified

Requirements

  • N/A