Selenium/How-to/Debug with browser.debug()

Environments
This tip works if you're targeting:
 * a local MediaWiki
 * MediaWiki-Docker
 * MediaWiki-Docker-Dev
 * MediaWiki-Vagrant
 * a remote wiki
 * Beta cluster

Make the browser visible
To make the browser visible, see Selenium/How-to/Make the browser visible.

mochaOpts
By default, Mocha will abort the test suite if it takes more than 60 seconds. That is usually plenty when you're just running tests, but it's usually not enough when you're debugging. Until 679355 is merged, you have to manually increase    in. This example extends the timeout to 60 minutes.

browser.debug
Put  at a place you want to debug.

More information

 * browser.debug