Hi Brendan,
First thanks a lot for your help. Sorry for confusing you, I actually
have up to icblModules_16, so just copy and paste problem. I think it
should work for any of icblModules_xxx, but it did not. This
checkbox's items are actually nested in a table, I don't know would it
be matter?

Thanks,

On Aug 12, 2:20 pm, Brendan Grainger <[email protected]>
wrote:
> Is it just me or is the id you're looking for wrong:
>
> > browser.checkbox( :id, 'icblModules_0' ).clear
>
> should be
>
> > browser.checkbox( :id, 'cblModules_2' ).clear
>
> if you're trying to check the checkbox you have listed there.
>
> On Aug 12, 2010, at 5:15 PM, Chan Nguyen wrote:
>
> > Hi everyone,
> > I followed a very simple example in Watir tutorial website
> >http://wiki.openqa.org/display/WTR/Checkboxes.
> > Here is the element HTML code:
> > <input type="checkbox" checked="checked" name="cblModules:2"
> > id="cblModules_2">
> > Then I tried
> > browser.checkbox( :id, 'icblModules_0' ).clear
> > but the compiler keeps complaining :
>
> > C:/Ruby187/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:
> > 56:in `assert_exists': Unable to locate element, using :id,
> > "icblModules_0" (Watir::Exception::UnknownObjectException)
>
> > Any idea?
>
> > Thanks,
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search 
> > before you ask, be nice.
>
> > You received this message because you are subscribed 
> > tohttp://groups.google.com/group/watir-general
> > To post: [email protected]
> > To unsubscribe: [email protected]

-- 
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