Skip to content

Instantly share code, notes, and snippets.

@aemkei
Forked from ubilabs/Selenuim for Rails 2.2
Created April 21, 2009 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aemkei/99230 to your computer and use it in GitHub Desktop.
Save aemkei/99230 to your computer and use it in GitHub Desktop.
Selenium for Rails 2.2
# Install Selenium as a plugin:
script/plugin install http://svn.openqa.org/svn/selenium-on-rails/stable/selenium-on-rails/
# Copy configuration file:
cp vendor/plugins/selenium-on-rails/selenium.yml.example config/selenium.yml
# Be sure to setup your browsers. Add this to run Firefox with a clean profile:
# /Applications/Firefox.app/Contents/MacOS/firefox-bin -P selenium
# Optional: Install ThoughtBot Shoulda gem:
# sudo gem install thoughtbot-shoulda
# Create Selenium test suite:
script/generate selenium my_test
# Run server in test mode:
script/server -e test
# Open setup page
open http://localhost:3000/selenium/setup
# Run acceptance tests
rake test:acceptance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment