Selenium/Explanation/Stack

This page explains stack from Selenium/Node.js/Write page. 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
For more information about the stack see Selenium/Stack.

Advantages

 * Minimal stack.

Disadvantages

 * No assertions.
 * No testing framework (setup, teardown, reporting...).
 * No page object pattern.

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

Everything is fine.

There is a problem.

Stack
In addition to the default stack, this example additionally uses:

Advantages

 * Assertions.

Disadvantages

 * No testing framework (setup, teardown, reporting...).
 * No page object pattern.

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

Everything is fine.

There is a problem.