Hi Terry, Try assert(@ie.checkbox(:name, "other_offers").checked?)
Alf Terry Peppers wrote: > Is there anyway in Watir to test a webpage to see if a Checkbox is > checked by default? > > I can access the checkbox name and verfy that there's a value with the > following: > > ------------- BEGIN CODE ------------------- > > assert(@ie.checkbox(:name, "other_offers")) > assert(@is.checkbox(:value, "other_offers).exists?) > > ------------- END CODE ------------------- > > But how can I tell if the box is checked? I tried using 'set' - but I > don't think that's correct. Can this be tested? > >------------------------------------------------------------------------ > >_______________________________________________ >Wtr-general mailing list >[email protected] >http://rubyforge.org/mailman/listinfo/wtr-general > > -- Alf Whitehead [EMAIL PROTECTED] 416-214-4977 x260 Quality Assurance Specialist Klick Communications, http://klick.com/ _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
