Sir

Sir is Selenium InterpreteR. It allows to run your selenium tests without firefox => right on server. And it's pretty cool.

Installation

Add this line to your application's Gemfile:

gem 'sir'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sir

Usage

You can either run executable file or include as library.

To run executable:

./bin/sir path/to/file path/to/initial_state

To use it inside your code:

Sir.run!(path_to_file, initial_state) #=> run commands, return hash with that commands