-
-
Save aemkei/99230 to your computer and use it in GitHub Desktop.
Selenium for Rails 2.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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