v5.1.7 - Show latest stable - 0 notes - Class: ScreenshotHelper
take_screenshot() public

Takes a screenshot of the current page in the browser.

take_screenshot can be used at any point in your system tests to take a screenshot of the current state. This can be useful for debugging or automating visual testing.

The screenshot will be displayed in your console, if supported.

You can set the RAILS_SYSTEM_TESTING_SCREENSHOT environment variable to control the output. Possible values are:

Show source
Register or log in to add new notes.