Does Watir work with ruby 1.9.1

31 views
Skip to first unread message

Karthikeyan K

unread,
Feb 20, 2009, 12:24:20 AM2/20/09
to Watir General
Since Ruby 1.9.1 is out, I tried installing and it. Now I have problem
with Watir is it is throwing error on loading libraries (syntax
error). So my question is, is watir comapatible with Ruby 1.9.1?

Bret Pettichord

unread,
Feb 20, 2009, 11:16:56 AM2/20/09
to watir-...@googlegroups.com
I'm not even sure if Watir works with Ruby 1.8.7. Does any one know?

Bret

infoDrone

unread,
Feb 23, 2009, 10:05:33 AM2/23/09
to Watir General
I have had success using Watir with 1.8.7, but I haven't gotten around
to trying it with 1.9 yet.

On Feb 20, 10:16 am, Bret Pettichord <b...@pettichord.com> wrote:
> I'm not even sure if Watir works with Ruby 1.8.7. Does any one know?
>
> Bret
>
> Karthikeyan K wrote:
> > Since Ruby1.9.1 is out, I tried installing and it. Now I have problem

German

unread,
Mar 4, 2009, 8:28:53 AM3/4/09
to Watir General
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

Thomas Preymesser

unread,
Mar 4, 2009, 10:43:53 AM3/4/09
to watir-...@googlegroups.com
2009/2/20 Karthikeyan K <mailk...@gmail.com>:

>
> Since Ruby 1.9.1 is out, I tried installing and it. Now I have problem
> with Watir is it is throwing error on loading libraries (syntax
> error). So my question is, is watir comapatible with Ruby 1.9.1?

in general you can look for 1.9 compatibility at http://isitruby19.com/

-Thomas

--
Thomas Preymesser
tho...@gmail.com
http://thopre.googlepages.com/
http://thopre.wordpress.com/

Reply all
Reply to author
Forward
0 new messages