Batir with IronRuby!

Has anyone used Watir with IronRuby successfully? I get an error that the required file "Watir" was not found. Which way do I need to configure for this file to work in IronRuby?

For some reason, my igem command does not work:

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

I am using 0.9 version of Ironruby.

I remember that in 0.9 you need to specify 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 high batir ERROR: when executing gem ... (RangeError) bignum is too big to convert to 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" 
+4
source share
3 answers

Have you used gem install watir or igem install watir ? If you install gems for IronRuby, you should use igem . Otherwise, it falls into the gem directory where your Ruby installation is located. IronRuby will not see the catalog of these gems by default, and you will have to use the full path to get to it. When using igem it places the gem in the correct directory for use with IronRuby.

+3
source

Watir uses the MMRI Ruby WIN32OLE library. Is this Iron Ruby library supported?

+1
source

I found that when you receive the required watir message not found in a regular ruby, you need to put before the requirement "watir" for the text requires "rubygems"

+1
source

All Articles