selenium-on-rails on rails 2.3.5
A quick note on the installation of selenium-on-rails for rails-2.3.5...

Supposing you installed already the Selenium gem (gem install Selenium — mind the capital ‘S’) and installed the selenium-on-rails plugin, but run into the following error when trying to run the Rakefile for Selenium:


cd [project]/vendor/plugins/selenium-on-rails
rake

results in:

(in [project]/vendor/plugins/selenium-on-rails)
/usr/bin/ruby18 -I"lib:lib" “/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb” “test/selenium_controller_test.rb” “test/renderer_test.rb” “test/setup_test.rb” “test/paths_test.rb” “test/selenium_on_rails_config_test.rb” “test/selenese_test.rb” “test/selenium_support_test.rb” “test/switch_environment_controller_test.rb” “test/rselenese_test.rb” “test/suite_renderer_test.rb”
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing’: uninitialized constant ActionView::Base::Helpers (NameError)
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/base.rb:163
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in’
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require’
from ./test/test_helper.rb:14
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
from ./test/selenium_controller_test.rb:1
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load’
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each’
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/usr/bin/ruby18 -I"lib:lib" "/usr/lib/ruby…]

than you probably installed the plugin from the URL recommended for projects using Rails 2.2 and up… Apparently this fork has not been updated for 2.3.5 compatibility, fortunately the one in git is. So just do

script/plugin remove selenium-on-rails
script/plugin install git://github.com/paytonrules/selenium-on-rails.git

The errors should be gone… :)

0 comments
New Comment







mini_captcha.png