Multiple attributes for input elements are now supported in the latest version of Watir - 1.6.2. The wiki has also been updated.
Charley Baker blog: http://charleybakersblog.blogspot.com/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Fri, Feb 6, 2009 at 11:20 PM, Vens <venugopal.devarako...@gmail.com>wrote: > > Hi: > > I just started using Watir for automating few web UIs. During this I > came across a situation where I had to put in data to a text field but > incidently there are 2 text boxes having the same name. Please look at > the snippet below: > > <div class="boxed"> > <h3 class="title"> Authorize NG IDs </h3> > <form action="ser.do" method="post" name="sAFrm"> > <input type="hidden" value="authorize" name="dispatch"/> > <table> > <tbody> > <tr> > <td colspan="2"><div class="infomark"> You can enter comma > separated multiple ngids </div></td> > </tr> > <tr> > <th> MID </th> > <td> <select size="1" name="mid"></select></td> > </tr> > <tr> > <th> NG IDs </th> > <td><input type="text" value="" size="100" > maxlength="200" > name="ngids"/></td> > </tr> > </tbody> > </table> > </form> > </div> > > <div class="boxed"> > <h3 class="title"> Authorize NG IDs </h3> > <form action="ser.do" method="post" name="sAFrm"> > <input type="hidden" value="unauthorize" name="dispatch"/> > <table> > <tbody> > <tr> > <td colspan="2"><div class="infomark"> You can enter comma > separated multiple ngids </div></td> > </tr> > <tr> > <th> MID </th> > <td> <select size="1" name="mid"></select></td> > </tr> > <tr> > <th> NG IDs </th> > <td><input type="text" value="" size="100" > maxlength="200" > name="ngids"/></td> > </tr> > </tbody> > </table> > </form> > </div> > > When I looked into > http://wiki.openqa.org/display/WTR/Multiple+Attributesit > said it is not implemented for input elements. Can you help me solve > this. > > Regards > Venu > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---