Hi,

I was trying the same and got errors too. I add more details below.

There problems are caused by required libs that were yet not migrated
to Ruby 1.9.

Here is what i got after i installed a fresh Ruby (1.9.1), then
RubyGems (1.3.1), then Watir (1.6.2):

c:/ruby1.9/lib/ruby/gems/1.9.1/gems/user-choices-1.1.6/lib/user-
choices/arglist-strategies.rb:152: warning: else without rescue is
useless
c:/ruby1.9/lib/ruby/gems/1.9.1/gems/user-choices-1.1.6/lib/user-
choices.rb:1:in `require': c:/ruby1.9/lib/ruby/gems/1.9.1/gems/user-
choices-1.1.6/lib/user-choices/arglist-strategies.rb:148: syntax
error, unexpected ':', expecting keyword_then or ',' or ';' or
'\n' (SyntaxError)
      when 0: # This is not considered an error because another source
             ^
c:/ruby1.9/lib/ruby/gems/1.9.1/gems/user-choices-1.1.6/lib/user-
choices/arglist-strategies.rb:178: syntax error, unexpected
keyword_end, expecting $end
    from c:/ruby1.9/lib/ruby/gems/1.9.1/gems/user-choices-1.1.6/lib/
user-choices.rb:1:in `<top (required)>'
    from c:/ruby1.9/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/
watir/options.rb:3:in `require'
    from c:/ruby1.9/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/
watir/options.rb:3:in `<top (required)>'
    from c:/ruby1.9/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/
watir/browser.rb:2:in `require'
    from c:/ruby1.9/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/
watir/browser.rb:2:in `<top (required)>'
    from c:/ruby1.9/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/
watir.rb:6:in `require'
    from c:/ruby1.9/lib/ruby/gems/1.9.1/gems/commonwatir-1.6.2/lib/
watir.rb:6:in `<top (required)>'


The problem is that (the installed version of) the "user-choices" lib
is not migrated to Ruby 1.9.
The error is described here:
   http://intertwingly.net/slides/2008/oscon/ruby19/17

Bye,

German

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to