Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6950501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:06:01+00:00 2026-05-27T14:06:01+00:00

Has anyone successfully set up a standalone environment for using ruby 1.9.2, selenium-client, and

  • 0

Has anyone successfully set up a standalone environment for using ruby 1.9.2, selenium-client, and rspec to test a NON-RAILS website.

I have scoured the web but I cannot seem to get the magic formula. There are gem version conflicts, missing libraries, etc. At this point I am totally confused.

BASIC PROBLEM: I have many test suites and tests ceated using SeleniumIDE 1.0.10 for a NON-RAILS application (IIS/ASP). I SIMPLY want to use the converted tests that the SeleniumIDE can provide and run them using ruby or better yet rake. (Note that the SeleniumIDE can create RSpec or Test/Unit tests and I would be love to get either working).

As I understand it the selenium-client has rake tasks to start/stop the SeleniumRC server and to run tests. But for the life of me I cannot get any of this this going.

I can provide more information if need be. But, at this point I would be happy to know of anyone that is also going down this road.

-Thanks!

P.S. I am doing this as a prelude to hybridizing the IIS/ASP application with rails and iteratively going to a full conversion. If I cannot get this first step going my bosses are going to nix the whole idea of going to rails, so please help 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:06:02+00:00Added an answer on May 27, 2026 at 2:06 pm

    You will need to gem install ‘rspec’ and ‘selenium-client’. I have ruby 1.9.2 installed and yes, I use rvm. I apologize for the firefox_version nonsense. I have multiple firefox versions installed on my Macbook. If you have a single firefox installed then simply specify :browser => “*firefox”

    You will need to open two Terminal windows. In the first, start the selenium-server.jar.

    In the second window, cd to the directory containing rspec_hello.rb and enter
    ruby ./rspec_hello.rb

    Here is rspec_hello.rb

        require "rubygems"         # >= 1.8.12
        require 'rspec'            # >= 2.1.0
        require "selenium/client"  # >= 1.2.18
    
        describe "google" do
          # attr_reader :selenium_driver
          @selenium_driver = nil
    
          before(:each) do
            firefox_version = 3
            firefox_path = "/Applications/Firefox" + firefox_version.to_s + ".app/Contents/MacOS/firefox-bin"
            @selenium_driver = Selenium::Client::Driver.new \
              :host => "localhost",
              :port => 4444,
              :browser => "*firefox #{firefox_path}",
              :url => "http://www.google.com/",
              :timeout_in_second => 60
              @selenium_driver.start
          end
    
          after(:each) do
            puts " "
            puts "goodbye world"
            @selenium_driver.close_current_browser_session
          end
    
          it "test google" do
            puts "hello world"
            @selenium_driver.open "/"
            @selenium_driver.type "q", "selenium wiki"
            @selenium_driver.click "btnG"
            @selenium_driver.wait_for_text("Selenium Wiki")
        @selenium_driver.text?("Selenium Wiki").should be_true
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone successfully bound 2 textboxes to one DateTime property using the model binding
Has anyone been able to successfully unit test methods that are, by necessity, coupled
Has anyone using .net actually worked out how to successfully sign a signature to
Has anyone successfully gotten IronPython running without issues in a web environment? I am
Has anyone successfully implemented a Java based solution that uses Microsoft SQL Server 2005
Has anyone successfully talked profibus from a .NET application? If you did, what device/card
Has anyone successfully installed VS 2008 Team Developer edition on the Windows 7 beta
Has anyone successfully mapped a numeric array in PostgreSQL to a numeric array in
Has anyone successfully used Tokyo Cabinet / Tokyo Tyrant with large datasets? I am
Has anyone of you successfully added a lexer to scintilla? I have been following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.