Selenium/Ruby

This tutorial will assume that you are running tests from your machine, targeting MediaWiki-Vagrant virtual machine.

Examples will:


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

Ruby + Selenium
This example will only use Ruby and Selenium. For documentation, see Selenium Ruby Bindings wiki or API.

Save the code in file (for example ) and run it.

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

Ruby + Selenium + RSpec
This example will use Ruby, Selenium and RSpec.

Save the code in file (for example ) and run it.

Ruby + Selenium + Cucumber
This example will use Ruby, Selenium and Cucumber.

Save the code in file (for example