captureScreenshot (name of screenshot) - Selenium IDE command

captureEntirePageScreenshot takes a screenshot of the whole web page.

captureScreenshot takes a screenshot of the visible website part (viewport). This command has the side effect of giving the tab that runs the macro the focus. This means it is made the active tab. Ui.Vision RPA does this as Chrome can only take screenshots of the currently active tab.

To capture the screenshot just of a web element, use storeImage.

The screenshot is saved internally and available in the "Screenshot tab". From there you can "download" it as an image file (PNG) if needed. You can automate this download with the LocalStorageExport command. OR: If you run UIV RPA in hard-drive mode the screenshot is directly saved as file in the "/screenshots/" folder below the UIV home directory (as specified in the XModule tab).

For automatically taking desktop screenshots, use the captureDesktopScreenshot command.

captureEntirePageScreenshot Example

Command Target Pattern/Text
open https://ui.vision/
captureEntirePageScreenshot my_screenshot_name.png -

Works in

captureScreenshot works in the Ui.Vision RPA for Chrome Selenium IDE.
captureEntirePageScreenshot works in the Ui.Vision RPA for Chrome Selenium IDE and Firefox IDE Classic.

Related Demo Macros

DemoTakeScreenshot includes both commands. Demo-Autofill includes captureScreenshot

The ready-to-import-and-run source code of all demo macros can be found in the Open-Source RPA software Github repository.

See also

click, Web Automation Extension User Manual, Selenium IDE commands, Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

<em>Ui.Vision RPA</em> Selenium IDE for Chrome and Firefox - Web Test Automation

Fresh from the Ui.Vision Forum: The Latest 3 RPA Software Discussions

← Meet the Ui.Vision team and users on our RPA software forum.