Tiffany,

I broke all of the watir/firewatir unit tests when run from gems. At 
this point you need to run them
out of trunk. I'll update the 1.6. page.

How badly do you all want me to fix this?

Bret

Tiffany Fodor wrote:
> Hi All!
>
> I've been trying to run the FireWatir 1.6.0 unit tests, but each time
> I get the following error as they start:
>
> C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/unittests/setup.rb:14:
> uninitialized constant Watir::Browser (NameError)
>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `gem_original_require'
>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `require'
>         from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/unittests/
> mozilla_all_tests.rb:3
>
> This happens with both the mozilla_all_tests.rb and
> attach_to_new_window_test.rb.  I followed the installation
> instructions on the FireWatir Installation page (http://
> wiki.openqa.org/display/WTR/FireWatir
> +Installation#FireWatirInstallation-ffsettings) and I've gone through
> the FireWatir Troubleshooting page (http://wiki.openqa.org/display/WTR/
> FireWatir+Troubleshooting), but I can't find anything wrong with my
> setup.
>
> Any ideas?
>
> Thanks!
>
> -Tiffany
>
> On Oct 31, 9:42 am, Bret Pettichord <[EMAIL PROTECTED]> wrote:
>   
>> I've reproduced the problem. Another workaround is to add "gem 'watir'"
>> to the top of the script. I'm trying to understand more about why this
>> is happening.
>>
>> As background, Watir 1.6 now "autoloads" firewatir original-watir (now
>> called watir-ie) or safariwatir based configuration. This is where the
>> problem is occuring.
>>
>> Bret
>>
>> Bret Pettichord wrote:
>>     
>>> Good report. This shouldn't be happening. Let me figure out what is
>>> going on. Thanks for posting your workaround.
>>>       
>>> Bret
>>>       
>>> Tony wrote:
>>>       
>>>> While trying to run a testcase i keep getting an error -
>>>> This is the script -
>>>> require 'watir'
>>>> Watir::Browser.default = 'ie'
>>>> brow = Watir::Browser.new()
>>>> brow.goto("http://www.aol.com";)
>>>> brow.close
>>>>         
>>>> tried with both firefox and ie and i get the same error
>>>> watir-common-1.6.0/lib/watir/browser.rb:20:in `klass': (eval):1:in
>>>> `klass': uninitialized constant Watir::IE (NameError)
>>>> watir-common-1.6.0/lib/watir/browser.rb:20:in `klass': (eval):1:in
>>>> `klass': uninitialized constant FireWatir::Firefox (NameError)
>>>>         
>>>> Made changes to browser.rb, added this at the beginning of the file to
>>>> make it work-
>>>> require 'watir/options'
>>>> require 'watir/ie'
>>>> require 'firewatir'
>>>>         
>>>> -Tony
>>>>         
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to