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.

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

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.