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. Kantu does this as Chrome can only take screenshots of the currently active tab.

Chrome extensions can not access the file system. Instead, the screenshot is saved internally and available in the "Screenshot tab". From there you can "download" it as an image file (PNG) if needed.

captureEntirePageScreenshot Example

Command Target Pattern/Text
open https://a9t9.com/
captureEntirePageScreenshot my screenshot name -

Works in

captureScreenshot works in the Kantu for Chrome Selenium IDE.
captureEntirePageScreenshot works in the Kantu 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 Github repository testmacros folder.

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.

Kantu Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.