Selenium/Ruby

This tutorial will assume that you are running tests from your machine, targeting beta cluster. Code from this page is available at selenium-mediawiki-rb repository. More details about the stack are available at Selenium/Ruby stack page.

Examples will:


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

The stack:

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

Advantages

 * Good and relatively simple stack with assertions, testing framework, page object library and shared code between MediaWiki repositories.

Disadvantages

 * Several new tools to learn.

Output
Everything is fine.

There is a problem.

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

Advantages

 * Good and relatively simple stack with assertions, testing framework, page object library and shared code between MediaWiki repositories.

Disadvantages

 * Several new tools to learn.

Code
Save the code in files and run Cucumber.

Output
Everything is fine.

There is a problem.