Selenium and Ruby setup in Windows

Selenium and Ruby setup in Windows
March 14 11:00 2011 Print This Article

Newbie in Ruby? Never heard Selenium? Had a reformat?
No sweat! Here’s a list of requirements to set up Selenium and Ruby in your Windows machine.

SELENIUM Remote-Control (RC )

–> is a test tool that allows you to write automated web application UI tests in any programming language against any HTTP website using any mainstream JavaScript-enabled browser.

  • extract the file anywhere in you local machine


–> Requirement to run the selenium server, should be 1.5 or later version

  • install Java and configure your PATH environment variable correctly.
  • from the console, you can verify the installation by typing:  java -version


  • requires Ruby


  • get the latest rubygem distribution as tgz or zip from here
  • extract the archive to your desired directory
  • 2 ways to install ruby:

from the console, go to the extracted directory then type:  ruby setup.rb

from your explorer, go to the extracted directory and double click setup.rb file

  • install the ruby client driver as a rubygem by typing:  gem install <ruby gem>

gem install selenium-client

  • install other gems that will be useful in your testing:

gem install rspec -v=1.2.6

gem install syntax

gem install faker

BDoc documentation

–> guide for all your rubygems documentations

  • from the console type: gem install aptinio-bdoc
  • then save the doc to your local, from the console  type:  bdoc //[path]

To get scripts or file from a repository through Git

  1. from the console, install github, bash or gui
  2. generate an SSH rsa, type: $ ssh-keygen -t rsa
  3. copy the generated id_rsa pub
  4. paste it on the personal settings of ur public_key
  5. then clone


Related Posts:

About Article Author

view more articles
Nataliia Vasylyna
Nataliia Vasylyna

View More Articles
  • Luis Lavena


    Can you upgrade your instructions to use RubyInstaller instead of old One-Click Installer?

    You pointed to RubyForge’s project page, where latest RubyInstaller is shown on top of old 1.8.6

    This could lead to some confusion with your instructions for some users.

    Ideally all what you outline here can be done using RubyInstaller 1.8.7 directly.

    Thank you.