Selenium/Node.js

This tutorial will assume that you are running tests from your machine, targeting MediaWiki-Vagrant virtual machine.

Examples will:


 * open Firefox
 * go to main page
 * check that Log in link is present
 * close browser

JavaScript + Selenium
This example will only use JavaScript and Selenium. For documentation, see Selenium JavaScript Bindings wiki or API.

Save the code in file (for example ) and run it.

The output will be  if the link is displayed on the page.

JavaScript + Mocha
This example will use JavaScript, Selenium and Mocha test framework. It will also use Node.js’ built-in assert module and Selenium Mocha wrappers.

Save the code in file (for example ) and run it.