Take Screenshot of Web Page
Description
Use this activity to take a screenshot of the web page.
Properties
Input
- Web Page – Specify the WebPage object of the currently opened web page.
- Folder Path – Specify the Folder path to save the screenshot.
- Image Format – Specify the screenshot image format for saving. This value can be either Jpeg or Png. The default value is Jpeg.
- Screenshot Type - Specify the type of screenshot to capture on the web page.
Option | Description |
---|---|
Visible Area | Captures the Screenshot of the visible area of the web page |
Full Page | Captures the Screenshot of the entire web page |
Element | Captures the Screenshot of the specified element |
-
Quality % - Specify the quality of the screenshot image for saving. Provide this value in the 0-100 range; otherwise, this range will be considered 100. Only 'Visible Area' and 'jpeg' formats support this property.
-
Scale - Specify the scale of the screenshot image for saving. Provide this value in the range 1-10; otherwise, this range will be considered 2. This property is only available when you choose the 'Full Page' or 'Element' option for the Screenshot type.
note
In large web pages, higher-scale values may not capture the screenshot.
- Element Path - Specify the XPath of the element in the web page to capture the screenshot. This property is only available for 'Element.'
Misc
- DisplayName – The display name of the activity.
- Private – By default, activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.
Optional
- Continue On Error – It Specifies whether the automation should continue even when the activity throws an error. If True, the activity continues without throwing any exceptions. If False, the activity throws an exception. The default value is False.
note
Catches no error if this activity is present inside the Try-Catch block and the value of this property is True.
- Timeout – An Argument of type Timespan Specifies the activity's waiting time to run before an error occurs and aborts the workflow. By default, the Timeout value is 10 minutes.
Output
- Image File Path - Returns the path of the saved image file.
Example
Download Example