Screenshot web element
Description
Takes a screenshot of the targeted web element and saves it to the output path.
Input Ports
| Name | dataType | sourceType | required | description |
|---|---|---|---|---|
| Save to | text | link-manual | false | The path you want to save the screenshot to, default is the Roboteur Cache directory. |
| Element selector | text | link-manual | true | The element that should be taken a screenshot of. |
| iFrame selector | text | link-manual | false | If the element is inside of an Iframe, it is mandatory to specify the iframe selector, otherwise the element won’t be found. |
| Size | text | link-manual | false | The size what the screenshot should be, normally it would be the size of the element. |
| iFrame type | text | manual-only | false | Option to add more iframes if the targeted element exists in a nested iframe |
Scenarios
- The user wants to take a screenshot of a targeted web element.
- The user wants to take a screenshot of a targeted web element and make the size 150x150 pixels.
Use case
Inputs
- Save to:
C:/Users/admin/Desktop - Element selector:
#root_alias > input - iFrame selector:
body > iframe - iFrame type:
single - Widht:
450 - Height:
750
Experienced tips
- When the
element selectorcould not be found inside of the page, the command will timeout and stop the process. - When the
elementare inside of aniframeand theiframe selectorcould not be found, the command will timeout and stop the process. - When no
Element selectoris provided, it will stop the process and throw the following error.Screenshot web element requires a element selector
Search Tags
Take Screenshot Element only