开发者

Firewatir: firewatir returns undefined method error in eclipse

Thank you for taking your time in reading this. I am just getting started with running Watir in Eclipse. When I try to load the require 'firewatir' statement on the top of the page, I receieve this error in the Eclipse console:

in `inherited': undefined method `demodulize' for "FireWatir::Pre":String (NoMethodError)

Running require firewatir in the 'irb' returns the same error. Any help would be greatly appreciated!

System Information:

Ruby Version: Ruby 1.9.1p430

Eclipse Version: Eclipse Java EE IDE Build id: 20100218-1602

Watir Version: 1.6.5

FireWatir Version: fire开发者_如何转开发watir 1.6.5


I solved this by:

gem uninstall activesupport
gem install activesupport --version '=2.3.8'

To allow Watir to run on ruby 1.9.2
install devkit and follow procedures listed here : Ruby Installer at GitHub

gem uninstall win32-api
gem install win32-api --platform=ruby


This appears to be a problem with the latest version of ActiveRecord - 3.0.0. I'd thought that we removed that as a dependency, apparently not. Please file a ticket in Jira and I'll take a look at it.

http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowtocreateaJiraTicket%3F


No need to uninstall activesupport-3.0.0, solved this by specifying required activesupport e.g:

require 'rubygems'    
gem "activesupport","=2.3.8"
require "firewatir"


As far as I know, Watir does not work with Ruby 1.9. Install Ruby 1.8.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜