Use multiple attributes for this:
browser.checkbox(:id=> "selectedevent" , index =>1).set browser.checkbox(:id=> "selectedevent" , index =>2).set browser.checkbox(:id=> "selectedevent" , index =>3).set - regards Amit Kumar On Mon, Jul 13, 2009 at 3:27 PM, rakesh <srakes...@gmail.com> wrote: > > tr style="height:20px;"> > <td style="width:30px; padding-left:5px;"><input type="checkbox" > value="c43afa4c-6c81-11de-9983-0016764319d8" name= "selectedevent" > id="selectedevent" /></td> > <td style="width:220px; " class="con-grey"> Vratham</td> > <td style="width:100px;" class="con-grey">07-22-2009</td> > </tr> > > <tr style="height:20px;"> > <td style="width:30px; padding-left:5px;"><input type="checkbox" > value="d64ac5be-6c81-11de-9983-0016764319d8" name= "selectedevent" > id="selectedevent" /></td> > > <td style="width:220px; " class="con-grey"> Kasi Yatra</td> > <td style="width:100px;" class="con-grey">07-22-2009</td> > </tr> > > <tr style="height:20px;"> > <td style="width:30px; padding-left:5px;"><input type="checkbox" > value="e872f2ac-6c81-11de-9983-0016764319d8" name= "selectedevent" > id="selectedevent" /></td> > <td style="width:220px; " class="con-grey"> Vara Pooja</td> > > <td style="width:100px;" class="con-grey">07-22-2009</td> > </tr> > > > > On Jul 13, 2:33 pm, Željko Filipin <zeljko.fili...@wa-research.ch> > wrote: > > On Mon, Jul 13, 2009 at 11:30 AM, rakesh <srakes...@gmail.com> wrote: > > > The problem is "how will i select a checkbox in multiple checkboxes" > > > > browser.checkbox(:id, "myid").set > > > > What is the problem. They all have the same attributes? > > > > Can you post the html of checkboxes and let us know which one would you > like > > to select? > > > > Željko > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---