Selenium/Ruby/Write

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

Examples will:


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

The stack:

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.