Watirloo is a project mainly written in ..., it's free.
Watir Framework as Page Objects
= Watirloo
== DESCRIPTION:
Watir Framework and Helper based on Semantic Page Objects Modeling. Helps you design tests expressing DOM elements and groups of elements on the page as Semantic Page Objects rather than their DOM implementations. It is not a DSL but it helps you write human readable tests and hooks them up to Watir browsers for implementation
Give it a try. You will like it.
== FEATURES/PROBLEMS:
== SYNOPSIS:
By convention Watirloo::Page.new attaches itself to the existing IE browser instance on the desktop.
Example: Given a page with text fields for last name and first name we want to enter name 'Kurt Vonnegut' You can define hash with key as semantic name and value as watir implementation
page = Watirloo::Page.new page.add_face :last => [:text_field, :name, 'l_nm'], :first => [:text_field, :name, 'f_nm'] page.last.set "Vonnegut" page.first.set "Kurt"
Or you can create a wrapper method that delegates to the browser
class Person < Watirloo::Page def last @b.text_field(:name, 'lnm') end def first @b.text_field(:name, 'fnm') end end
Or define a hash where key will match the defined faces to be set params = {:first => 'Kurt', :last => 'Vonnegut'} page = Watirloo::Page.new.spray params
Or pass page cofiguration in the block at page creation
page = Person.new do last.set 'Vonnegut' first.set 'Kurt' end
== REQUIREMENTS:
== INSTALL:
=== ROADMAP
Towards version 0.0.2
== LICENSE:
(The MIT License)
Copyright (c) 2008 marekj
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.