Friday, 25 April 2014

Getting started with Ruby | Selenium Users

Note|  Text in Blue [#PYTHON], Red [#RUBY], and Orange [#JAVA] can be edited or mentioned important for the entire blog. All the posts are practically done by me.

Ruby Installation

In Windows, you can use either RubyInstaller or pik.

1| Download rubyinstaller
2| Check Ruby version
Start > Interactive Ruby

3| Install Selenium WebDriver library for Ruby
INSTALL > gem install selenium-webdriver

4| Download Devkit before installing json
5| Extract DevKit to path C:\Ruby200\DevKit
6| Open cmd prompt
> cd C:\Ruby200\DevKit
> ruby dk.rb init
> ruby dk.rb review
> ruby dk.rb install

INSTALL > gem install json

7| Download Ruby DLTK plugin for Eclipse IDE [Go to Eclipse Marketplace and search Ruby DLTK]

8| Go to Windows > Preferences > Ruby - Interpreters

9| Click on 'Add' and Locate Ruby.exe  "C:\Ruby200\bin\ruby.exe"

10| Create a New Ruby Project
Right click on package Explorer > New > others 

11| Type 'Ruby'.
12| Select 'Ruby Project' and press Finish.

13| Create a new Ruby module.
Right click on package > New > Ruby module

14| Develop your Ruby selenium script like sample given below

require "selenium-webdriver"

driver = Selenium::WebDriver.for :firefox ""

element = driver.find_element(:name, 'q')
element.send_keys "Prashanth Sams"


15| Rick click on program Run > Ruby Script

1| Rack is a web server interface used for developing web applications in Ruby; Rack is used by almost all Ruby web frameworks and libraries, such as Ruby On Rails and Sinatra.
2| RubyGems is a package manager for Ruby programming language.


  1. Hi
    i dont have the build.xml on my project i just have the testNg.xml
    i need to creat it ??

  2. It was very nice article and it is very useful to Selenium learners.We also provide Cub training software online training.

  3. Thanks for the great information in your blog Selenium Training in Chennai

  4. Well explained. Got to learn new things from your Blog on Appium.
    Appium training in chennai

  5. Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Selenium.selenium training in chennai


  6. Thanks for posting this useful content, Good to know about new things here, Let me share this, . VMWare training in pune

  7. Advanced Selenium Framework Training in Chennai by Vishwa

    Hi, Reach Mr.Vishwa for Best Selenium and Coded UI Training in Chennai with real time project assistance. This people will teach everything from the basics up to advanced level scenarios from frameworks.

    I learned from Mr.Vishwa and Raj they are very good automation people for Selenium Frameworks. After joined with them I learned many things and now I am writing automation scripts in own project. Vishwa 9003085882
    selenium training in chennai

  8. Interest to learn Selenium Online Training by Real Time Software Testing Professional Trainer having 10+ Years of Expert.
    Selenium Training in Hyderabad

  9. It was very nice blog to learn about Selenium.Thanks for sharing new things.selenium training in chennai

  10. Thank You for sharing your article. I like it. We are also giving TIBCO Online Training at affordable prices.

  11. Great site for these post and i am seeing the most of contents have useful for my Carrier.Thanks to such a useful information.Any information are commands like to share him.
    Selenium Training in Chennai

  12. Hi,

    i am learner of selenium,this post is very useful for me thank you

  13. Nice Article, Croma Campus is the pioneer of instruction giving the Selenium Training in Noida

  14. At Coepd - (Center of Excellence for Professional Development) Manual & Selenium testing training program is designed to give participants the skills & knowledge to gain a competitive advantage in starting/enhancing a career in software testing. We provide the attendee's software testing service which is required to ensure that tested applications meet all application requirements. Participants receive up-to-date training in multiple areas in Software Testing and a thorough understanding of real-world projects. Our collaborative ecosystem comprising of Partnerships with Software Companies enables real time software test life cycle experience.

  15. Thanks For The Great Post.....Very Helpful And Useful....The Concept Of
    Ruby Is Cleared As Of Now For Me With Your Explanation.....
    Selenium Certification Training

  16. Pretty blog, so many ideas in a single site, thanks for the informative article, keep updating more article.
    Software testing course in chennai

  17. It's A Great Pleasure reading your Article, learned a lot of new things, we have to keep on updating it Learn Tibco Online Thanks for posting.