Selenium/How-to/Record videos of test runs

This page will assume you know how to run Selenium tests. If not, see Selenium/Getting Started.

Overview
To record videos for our tests, we use the wdio-video-reporter NPM package which supports WebdriverIO v5 and above.

Environment Variables
By default, videos for all test runs will be recorded. In order to enable video recording specifically for failed tests only, run the tests using the following command:

Videos
Videos are usually located in  or   folder. You can play them using a video player like VLC.

Warning ⚠️: Alerts and pop-ups will not be recorded in the videos.

More information

 * Videos of test runs column at Selenium/Reference/Running tests.
 * plugins/gitiles/mediawiki/core/+/master/tests/selenium/README.md
 * Selenium/How-to/Run tests targeting Quibble