No commit activity in last 3 years
No release in over 3 years
For simplifying migrating of Seleniumrc_fu Rails plugin tests to Webrat tests
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Seleniumrc_fu Webrat Mapper¶ ↑

For simplifying migrating of Seleniumrc_fu Rails plugin tests to Webrat tests without an extensive rewrite.

Extends Webrat modules to map various Seleniumrc_fu API methods to their Webrat equivalent.

Not a complete set of mappings, but can be easily extended.

Usage¶ ↑

Require ‘seleniumrc_fu_webrat_mapper’ after ‘webrat’.

Update your seleniumrc_fu tests to use Webrat and the mapper will enable you to use (some of) the seleniumrc_fu API without rewriting to the Webrat API.

Simplified example:

require File.dirname(__FILE__) + "/../test_helper"
require "webrat"
require "seleniumrc_fu_webrat_mapper"

Webrat.configure do |config|
  config.mode = :selenium
end

class SampleTest < ActionController::IntegrationTest

  def test_user_can_login
    open "/login"
    assert_text_present 'Please login'
    type "email", "joe@example.com"
    type "password", "my_password"
    click_and_wait "Login"
    assert_text '//div[@id="flash_notice"]', 'Welcome back Joe!'
  end

end

Copyright © 2009 Niall Mullally, released under the MIT license