Watir gem installation
|
|
I installed and then installed rails which worked fine, then i went on to install watir, which is gem install watir or downloading the gem and firing the command gem install watir-1.6.1.gem I get the below error Hi, I installed ruby 1.9.1 using the ruby installater at rubyforge when i did a gem install watir i get this error below of unable to create the make file, whats wrong here? C:\Ruby19\bin>gem install watir-1.6.1.gem C:/Ruby19/bin/ruby.exe extconf.rb Provided configuration options: Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-api- |
|
|
http://programming-gone-awry.blogspot.com/2009/… this link did help me install ruby however the require statement is failing with the below error |
|
|
Ruby 1.9 enforced the original intent for case statements. The syntax is supported in 1.8, along with the variation that everyone seems to use (at least everyone with a C/C++/C#/Java background). The case statement should be written like this: case(var) when 0 then
If you replace the colons after the value on the “when” lines with the word “then” the code should work. Submit a bug report to the watir folks to have them fix the case statements for the next version of the library. The “when X then” pattern works in 1.8, and is forward compatible so there shouldn’t be too much drama with it. |