Yesterday, when I was home. I got it run without problem under FF
( Ubuntu Linux ). Now I'm at work, I used ie. and it gave me errors :
(. Any idea?

frame = browser.frame( :id, "Main_Body" )
frame.checkbox( :id, "cblModules_0" ).clear
frame.checkbox( :id, "cblModules_1" ).clear
frame.checkbox( :id, "cblModules_2" ).clear
frame.checkbox( :id, "cblModules_3" ).clear
---------------------------------------------------------------

C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in
`method_missing': document (WIN32OLERuntimeError)
    OLE error code:80070005 in <Unknown>
      Access is denied.


    HRESULT error code:0x80020009
      Exception occurred.
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
frame.rb:52:in `document'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
container.rb:800:in `locate_input_element'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
input_elements.rb:487:in `locate'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
element.rb:53:in `assert_exists'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
element.rb:288:in `enabled?'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
element.rb:60:in `assert_enabled'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
input_elements.rb:556:in `set'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/
input_elements.rb:568:in `clear'
        from C:/NetBeans Project/RubyApplication2/lib/main.rb:16

On Aug 13, 7:00 am, Chan Nguyen <[email protected]> wrote:
> Hi Željko again,
> Thanks for your clear answer ;) ! I will keep this in mind "Only
> Frame" ^_^ !
>
> On Aug 13, 12:33 am, Željko Filipin <[email protected]>
> wrote:
>
> > On Fri, Aug 13, 2010 at 5:59 AM, Chan Nguyen <[email protected]> wrote:
> > > So this problem is only with "frame"?
>
> > Yes.
>
> > > Is there any other element that we have to do this kind of "nested call" ?
>
> > No.
>
> > > What's the easiest way to access an element?
> > > What's the most usable way to access an element?
>
> > Make sure element has ID attribute.
>
> > Željko
> > --
> > watir.com - community manager
> > watirpodcast.com - host
> > testingpodcast.com - audio podcasts on software testing. all of them
> > vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to