Skip to content

Commit

Permalink
record-a-test
Browse files Browse the repository at this point in the history
Record a test using the [Selenium IDE Firefox extension](http://seleniumhq.org/projects/ide/).  We are going to use the [rselenese format](http://wiki.openqa.org/display/SIDE/SeleniumOnRails), which you must add to Selenium IDE.  (Options|Options|Formats|Add)

Record a small test, perhaps just the process of creating a new
account.  Make sure and add some verify's, which you can find in your
right click menu.

After you've finished, tweak it so that it looks something like this:

SHOW_PATCH
  • Loading branch information
bryanlarsen committed Feb 19, 2010
1 parent 975376e commit 4f686a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/selenium/create_account.rsel
@@ -0,0 +1,12 @@

include_partial "setup_fixture_set", :set => "blank"
open "/"
click "link=Sign up"
wait_for_page_to_load "30000"
type "user_name", "Test User"
type "user_email_address", "test@example.com"
type "user_password", "test"
type "user_password_confirmation", "test"
click "//input[@value='Signup']"
wait_for_page_to_load "30000"
verify_text_present "Thanks for signing up!"

0 comments on commit 4f686a9

Please sign in to comment.