Jump to content

Selenium/How-to/Take screenshots

From mediawiki.org

By default screenshots are only taken for failing tests. If you want screenshots for all tests you need to configure it. You can do that in your wdio configuration file:

screenshotsOnFailureOnly: false

Or if you can pass on the parameter:

npm run selenium-test -- --screenshotsOnFailureOnly false