Just so you know, this requirement results from a fairly major change in 
structure to Watir that most users should not have to worry about.

However, anyone, like Michael, who is monkey-patching (which is the term 
of art for modifying existing Watir classes), will need to "require 
'watir/ie'"

The reason for this is as follows. The "watir" library (what you require 
'watir' to get), used to be the Watir::IE class and supporting code. Now 
that library is called "watir/ie". There is now a new library called 
"watir" (contained in the commonwatir gem, actually) that loads the 
correct library. It will load 'watir/ie' if (1) you use Browser.new and 
your browser option is 'ie' or (2) if you make any reference to Watir::IE.

Bret


Michael Hwee wrote:
> Yes, that works now.
> Thanks, Bret.
>
>
>
> ----- Original Message ----
> From: Bret Pettichord <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Thursday, November 6, 2008 11:11:09 AM
> Subject: [wtr-general] Re: Getting error at installing 1.6.1
>
>
> You will need to add this line to your code:
>   require 'watir/ie'
>
> Bret
>
> Michael Hwee wrote:
>   
>> Not sure what is causing the custom element extension.
>>
>> Any idea?
>>
>> c:\>gem list watir
>>
>> *** LOCAL GEMS ***
>>
>> watir (1.6.1)
>>
>> c:\>irb
>> irb(main):001:0> require 'watir'
>> => true
>> irb(main):002:0> module Watir
>> irb(main):003:1>   class Strong < NonControlElement
>> irb(main):004:2>     TAG = 'STRONG'
>> irb(main):005:2>   end
>> irb(main):006:1>   module Container
>> irb(main):007:2>     def strong(how, what=nil)
>> irb(main):008:3>       return Strong.new(self, how, what)
>> irb(main):009:3>     end
>> irb(main):010:2>   end
>> irb(main):011:1> end
>> NameError: uninitialized constant Watir::NonControlElement
>>         from (irb):3
>> irb(main):012:0>
>>
>> Michael
>>
>>
>>
>>
>> ----- Original Message ----
>> From: Michael Hwee <[EMAIL PROTECTED]>
>> To: [email protected]
>> Sent: Thursday, November 6, 2008 10:13:14 AM
>> Subject: [wtr-general] Re: Getting error at installing 1.6.1
>>
>>
>>
>> Do I have to install watir-common gem?
>>
>>
>>
>>
>> ----- Original Message ----
>> From: Bret Pettichord <[EMAIL PROTECTED]>
>> To: [email protected]
>> Sent: Thursday, November 6, 2008 9:59:06 AM
>> Subject: [wtr-general] Re: Getting error at installing 1.6.1
>>
>>
>> It looks like there was a non-critical error creating the doc for one of 
>> the gems.
>>
>> Bret
>>
>>
>> Michael Hwee wrote:
>>  
>>     
>>> Hi Bret,
>>>
>>> Followed instructions at 
>>> http://wiki.openqa.org/display/WTR/Development+Builds
>>>
>>> Then, got following error at 'gem install watir'.  Any idea?
>>>
>>> ERROR:  While generating documentation for builder-2.1.2
>>> ... MESSAGE:   Unhandled special: Special: type=17, text="<!-- HI -->"
>>> ... RDOC args: --ri --op e:/ruby/lib/ruby/gems/1.8/doc/builder-2.1.2/ri 
>>> --title
>>> Builder -- Easy XML Building --main README --line-numbers --quiet lib 
>>> CHANGES Ra
>>> kefile README doc/releases/builder-1.2.4.rdoc 
>>> doc/releases/builder-2.0.0.rdoc do
>>> c/releases/builder-2.1.1.rdoc
>>> (continuing with the rest of the installation)
>>>
>>>
>>> Michael
>>>
>>>
>>>    
>>>  
>>>    
>>>       
>>
>>
>>     
>>  
>>     
>
>
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
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