Hi Bret,

Thanks for the heads up. We could do a kind_of? or is_a?  in a Factory
or something.

and re-open

class Watir:IE; end
class FireWatir::Firefox; end

Cheers

Aidy


2008/12/15 Bret Pettichord <b...@pettichord.com>:
>
> The code is in the commonwatir gem.
>
> The reason you got the error is that technically Watir::Browser is a
> module, not a class. Thus:
>
>    module Watir::Browser
>      def add_some_addtional_methods
>
>      end
>
>    end
>
>
> However, if your intent is to add a method to both Watir::IE and
> FireWatir::Firefox, this won't do it (yet).
>
> Bret
>
>
> aidy lewis wrote:
>> Hi,
>>
>> Can anyone tell me where the code is that uses the Browser class to
>> wrap up the separate implementations of Watir and FireWatir?
>>
>> So we can do this:
>>
>> browser ||= Watir::Browser.new
>>
>> I tried re-opening the Browser class
>>
>> class Watir::Browser
>>   def add_some_addtional_methods
>>
>>   end
>>
>> end
>>
>> But got a class not found.
>>
>> Cheers
>>
>> Aidy
>>
>> >
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to