Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-08 Thread Charley Baker
Ruby's require is case sensitive. Whether that's a good thing or not, it's something to be aware of when requiring files. Require will load a file into your ruby space once whether it's a ruby file or a dll or other binary library, load is another method that will pull the file in everytime it's

[Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-07 Thread Avinash
I am running the following versions: ruby 1.8.5 (2006-08-25) [i386-mswin32] watir 1.5.1.1081 I was running an older version of ruby but uninstalled it before installing the current version, using the windows one-click installer. When I execute watir scripts, I get the following blurb of

Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-07 Thread John Lolis
shot in the dark here, did you by chance require 'Watir' twice? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5662messageID=15816#15816 ___ Wtr-general mailing

Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-07 Thread Avinash
No, I have these lines on top of my script: require 'watir' include Watir as described here: http://wtr.rubyforge.org/example_testcase.html I am starting to get my hands dirty with Watir, hence I might be doing something silly here...

Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-07 Thread John Lolis
just for fun i opened up the irb and did the following irb: require 'Watir' and that happend. I wouldn't worry about it :) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5662messageID=15830#15830

Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-07 Thread Charley Baker
Shouldn't happen if you type require 'watir' Note the casing. require should load files once, if, however, you change the casing then you will load the same file multiple times. -Charley On 12/7/06, John Lolis [EMAIL PROTECTED] wrote: just for fun i opened up the irb and did the following

Re: [Wtr-general] Warnings: already initialized constant when executing watir scripts

2006-12-07 Thread Avinash
Thank you. That did it. Fixed the casing (require 'watir') and all is well. So why does the casing matter? While we are on this topic, what is the difference between include and require? -- Avinash - Posted via Jive Forums