Forum: Ruby on Rails [ANN] Selenium testing plugin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
337cdd270761e0e6f4356de45b04d388?d=identicon&s=25 Jonathan Viney (jonny)
on 2006-02-19 13:08
Greetings,

I've just finished a new release of my Selenium testing plugin with much
tighter integration to rails. The rake selenium step has been removed as
all tests are now live (just save your test file and refresh the
browser).

Install it with:

  script/plugin install
http://svn.viney.net.nz/things/rails/plugins/selen...

And check out the readme:
  http://svn.viney.net.nz/things/rails/plugins/selen...

For those who don't know, this plugin allows you to write Selenium tests
like this:

  class PersonSeleniumTest < Test::Unit::TestCase
    fixtures :people

    def setup
      open :controller => 'person', :action => 'view', :id => 1
    end

    def test_add_new_person
      click           'add_new_person_link'
      assert_visible  'add_new_person'
      type            'new_person_first_name', 'Pixel'
      type            'new_person_last_name', 'the Cat'
      select          'new_person_gender', 'Male'
      click_and_wait  'submit_add_new_person'
      assert_text     'person_name', 'Pixel the Cat'
    end
  end

100% Ruby and proud of it ;)

Comments/feedback/patches welcome.

-Jonny.
This topic is locked and can not be replied to.