Selenium/Getting Started/Run tests targeting Beta cluster

For this example, we will target English Wikipedia at the Beta Cluster. You will need internet access.



Advantages

 * You do not have to install or learn how to use MediaWiki-Vagrant.
 * It will be reasonably fast.
 * Debugging failed tests will be easier, since you will see the browser.

Disadvantages

 * You will need internet connection while running the tests.
 * The tests will be slower since the target machine is not local.
 * You will have to install Selenium and it's dependencies on your machine.
 * While the tests are running the host machine will be hard to use because Chrome will be opening and closing for every test (but not stealing focus).

Clone MediaWiki core
There are several ways to clone the MediaWiki core repository (anonymous http, http, ssh). We will use anonymous http since it is the simplest.

Install dependencies
You will need internet access for this step. Depending on your operating system, installing dependencies will be different.

Chrome

 * Install Chrome.
 * Download ChromeDriver and put it in a folder included in.

Node.js

 * Install Node.js.
 * Install required npm packages.

Run the Selenium tests
Please note that all tests will fail at the moment. Tests are written for targeting MediaWiki on a Jenkins slave machine and MediaWiki-Vagrant virtual machine.