method

take_failed_screenshot

Importance_1
v6.1.3.1 - Show latest stable - 0 notes - Class: ScreenshotHelper
take_failed_screenshot() public

Takes a screenshot of the current page in the browser if the test failed.

take_failed_screenshot is included in application_system_test_case.rb that is generated with the application. To take screenshots when a test fails add take_failed_screenshot to the teardown block before clearing sessions.

Show source
Register or log in to add new notes.