With Ruby 1.8.4 or 1.8.5, you must first do require 'rubygems' before you do require 'watir'
With 1.8.2, this was implicit. Bret Charley Baker wrote: > I'm not quite sure what you're doing. You've installed a gem, 1065 > according to your email. Which file is ruby complaining about? And why > are you copying your files watir and other files? It sounds like > you're creating a mess of problems. > Uninstall the 1.4 version if you have it and delete watir.rb and any > watir directory from your ruby install. Follow the instructions on the > FAQ for installing watir. Get yourself back to a known good state. And > then try to run your tests. > > -Charley > > > On 9/12/06, *Allen Zhou* < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi, > > I am suffering the question of "no such file to load -- watir > (LoadError)". > > I know it has been discussed in the URL below > http://forums.openqa.org/thread.jspa?threadID=3949&tstart=30 > <http://forums.openqa.org/thread.jspa?threadID=3949&tstart=30> > > But following the instruction, I still can't solve the problem. > > I found that if I copy the WATIR folder to the workspace of my > project, the program will work done. And I copy my program to the > WATIR folder such as > C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1065 > it will be correct running too. > > So I think it may be caused by the runtime path setting. > > My ruby version is 1.8.5-21 and my WATIR version is 1.5.1.1065 > which is installed using gem file. > > Could anyone kindly help me with it? Thanks! I am looking forward > to your answer! > --------------------------------------------------------------------- > Posted via Jive Forums > http://forums.openqa.org/thread.jspa?threadID=4136&messageID=11365#11365 > <http://forums.openqa.org/thread.jspa?threadID=4136&messageID=11365#11365> > _______________________________________________ > Wtr-general mailing list > [email protected] <mailto:[email protected]> > http://rubyforge.org/mailman/listinfo/wtr-general > > > ------------------------------------------------------------------------ > > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
