Selenium/How-to/Make the browser visible or hidden
(Redirected from Selenium/How-to/Make the browser visible)
Follow instructions from Run tests targeting MediaWiki-Docker. For information which environments support visible browser see Selenium/Reference/Running tests page.
Browser visibility is controlled by DISPLAY
environment variable. The variable is by default not set on macOS. It is by default set on Ubuntu Linux.
VisibleEdit
To make the browser visible, make sure the DISPLAY
environment variable is set to any value.
export DISPLAY=1
HiddenEdit
To make the browser hidden, make sure the DISPLAY
environment variable is not set.
unset DISPLAY
Run Selenium testsEdit
npm run selenium-test