This is so exciting! On Sun, Jul 24, 2011 at 4:53 PM, Jarmo <jarm...@gmail.com> wrote:
> 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 > wtr-developm...@rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-development > -- Bret Pettichord Director, Watir Project, www.watir.com Blog, www.testingwithvision.com Twitter, www.twitter.com/bpettichord -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com