Selenium/How-to/Make the browser visible or hidden

Follow the instructions located at Run tests targeting MediaWiki-Docker. For information on which environments support a visible browser, see the Selenium/Reference/Running tests page.

Browser visibility in Docker is controlled by the  environment variable. This variable is by default not set on macOS. It is by default set on Ubuntu Linux.

Visible
To make the browser visible, make sure the  environment variable is set to any value.

If the value for your  variable starts with a colon, it will trigger ffmpeg to record a video of the test running. Since video recordings are only supported on Linux, if you are on a different OS, make sure your value for  does not start with a colon.

Hidden
To make the browser hidden, make sure the  environment variable is not set.