Selenium/Getting Started/Create a simple test

This tutorial will assume that you are running tests from your machine, targeting beta cluster. Code from this page is available at repository. repository has more code examples in folder.

Examples will:


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

Stack
More details about the stack are available at Selenium/Stack and Selenium/Node.js/Stack pages.

Advantages

 * Simple stack with assertions, testing framework (setup, teardown, reporting...)
 * Nicer API on top of Selenium
 * Page object pattern

Disadvantages

 * A couple of new tools to learn tool to learn, Mocha and WebdriverIO

Output
Start Chromedriver in one terminal tab or window and run the tests in another one.

Everything is fine.

There is a problem.