Good news everyone!

I've found some time to play with Watir and managed to release a new version
- 2.0.0.rc2 (rc1 had buggy dependency, sorry)!

There are some big changes including 0-based-indexing, which is enabled by
default and not releasing new versions of FireWatir.
Also, all collection factory methods accept now (multiple)
specifiers/locators. A lot of these changes are compatible with
Watir-WebDriver (see the list of incompatibilities compared with previous
versions at
https://github.com/jarib/watir-webdriver/wiki/Comparison-with-Watir-1.X).

Here is the full changelog:
* RIP FireWatir - there won't be any new releases
* all elements are using 0-based indexing instead of old 1-based indexing:
 - disable it temporarily: require "watir";
Watir.options[:zero_based_indexing] = false
* #radio and #checkbox methods doesn't allow 3 parameters anymore for
locating with "value"
 - use browser.radio(:name => "something", :value => "some value") syntax
instead for locating with "value"
* all element methods accept now multiple-specifiers with hash syntax, for
example:
 - browser.element(:class => "someclass", :name => "somename")
* all elements are searchable by :xpath and :css now (note that it's usually
slower than searching by other specifiers)
* #button, #form and #frame doesn't accept single string as a specifier
anymore to search by name:
 - use browser.frame(:name => "name") or browser.frame(:name, "name") syntax
instead
* :index => 0 is used as a default specifier if nothing is specified:
 - browser.div(:id => "id").table.tr is same as browser.div(:id =>
"id").table(:index => 0).tr(:index => 0)
* all collection methods accept now specifiers too:
 - browser.divs(:class => "someclass").each {|div| puts div.class_name} # =>
"someclass"
* removed FormElement class
* renamed CheckBox class to Checkbox
* renamed CheckBoxes class to Checkboxes
* added aliases:
 - tr => row
 - trs => rows
 - td => cell
 - tds => cells
 - a => link
 - as => links

You can try these changes out by executing `gem install watir --pre`!

Since this release includes quite many core changes (even non-visible ones)
then i really encourage everyone to run their current tests against this
version first by disabling 0-based-indexing. Let me know about the things
which did get broken after the upgrade. Hope there's none :)

Cheers!

Jarmo Pertman
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to