Hi Rakesh, try below code. I hope It'll work with ur application. In ur case , every checkbox is in different row thats why indexing was not working for you.
browser.form(:name, 'guest').checkbox(:name, "selectedevent").set browser.form(:name, 'guest').table(:index ,3)[3].checkbox(:name, "selectedevent").set browser.form(:name, 'guest').table(:index ,3)[4].checkbox(:name, "selectedevent").set - regards Amit Kumar On Jul 13, 3:41 pm, Brautigam Gergely <skarlso...@yahoo.com> wrote: > He says that the file he is using does not contain which Checkbox INDEX he > has to set... Only the ID which is that of all of the check boxes and not an > Index i guess.. > > But why not? Simply add it to the file or ask the Devs to give explicit id's > for the checkboxes. That is what i've done in cases like this. > > --- On Mon, 7/13/09, Željko Filipin <zeljko.fili...@wa-research.ch> wrote: > > From: Željko Filipin <zeljko.fili...@wa-research.ch> > Subject: [wtr-general] Re: Need help > To: watir-general@googlegroups.com > Date: Monday, July 13, 2009, 12:33 PM > > On Mon, Jul 13, 2009 at 12:31 PM, rakesh <srakes...@gmail.com> wrote: > > My input file dont contain the index,it doesnt know which in which > > index > > You will have to be more explicit. I did not understand what you wanted to > say. > > Ž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 -~----------~----~----~----~------~----~------~--~---