Selenium/Node.js

This tutorial will assume that you are running tests from your machine, targeting beta cluster.

Examples will:


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

All examples use:


 * JavaScript (Node.js),
 * Node.js’ built-in assert module,
 * Selenium JavaScript Bindings (wiki, API).

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

Output if everything is fine.

Output if there is a problem.

JavaScript + Selenium + Mocha
In addition to the usual Node.js + assert + Selenium bundle, this example additionally uses:


 * Mocha test framework,
 * Selenium Mocha wrappers.

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

Output if everything is fine.

Output if there is a problem.