ph7 / selenium-client

Official Ruby client API for Selenium Remote Control (bare bone client driver)
http://rubyforge.org/projects/selenium-client/
Apache License 2.0
153 stars 47 forks source link

Not able to start RC using the code #2

Closed deepakr closed 15 years ago

deepakr commented 15 years ago

Sir,

Please help , I am not able to start RC using following code. require "rubygems" require "selenium-client" require "selenium/rake/tasks" class Newtest Selenium::Rake::RemoteControlStartTask.new do |rc| rc.port = 4444 rc.timeout_in_seconds = 3 * 60 rc.background = true rc.wait_until_up_and_running = true rc.jar_file = "" rc.additional_args << "-singleWindow" end end

error :: ruby: No such file or directory -- run (LoadError)

aptinio commented 15 years ago

try: require "selenium/client" instead of: require "selenium-client"

ph7 commented 15 years ago

Not a bug. You need to either:

gem 'selenium-client'

or

require "selenium/client"