Watir with IronRuby!

Posted by azamsharp on Stack Overflow See other posts from Stack Overflow or by azamsharp
Published on 2009-09-21T03:14:43Z Indexed on 2010/04/13 22:03 UTC
Read the original article Hit count: 663

Filed under:
|

Has anyone used Watir with IronRuby successfully? I am getting an error that the required file 'Watir' was not found. What path do I need to set to get this file to work in IronRuby?

For some reason my igem command is not working:

C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>igem instal l watir '"C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin\ir.exe"' is not recognized as an internal or external command, operable program or batch file.

I am using 0.9 version of Ironruby.

I remember that in 0.9 you have to indicate the ir tool: I used the following and got the error again!

C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>ir igem ins tall watir ERROR: While executing gem ... (RangeError) bignum too big to convert into Fixnum

The current version of RubyGems is 1.3.5:

C:\DevTools\IronRuby\ironruby\Merlin\Main\Languages\Ruby\Scripts\bin>ir igem -v 1.3.5

I even tried using the full path:

require File.dirname(__FILE__) + "C:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir.rb"

© Stack Overflow or respective owner

Related posts about ironruby

Related posts about watir