Hi Arihan, Yes, I checked the id name carefully. I don't really know why it failed, too obvious to be right :( Thanks,
On Thu, Aug 12, 2010 at 3:04 PM, arihan sinha <arihan.si...@gmail.com>wrote: > Have you given the correct id name? > > it seems from html code the id is *cblModules_2* but you have used i* > cblModules_0* > > > On Thu, Aug 12, 2010 at 10:15 PM, Chan Nguyen <atbl1...@gmail.com> 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 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: watir-general@googlegroups.com >> To unsubscribe: >> watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> >> > > -- > 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: watir-general@googlegroups.com > To unsubscribe: > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > -- 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: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com