<div>Hi Zeljko,</div>
<div>Here is the html that is generated,</div>
<div> </div>
<p><form action="/servlet/acedispatcher" method="get"></p>
<p><input type="Radio" checked name="parId0" value="0" onClick="submit()"> one two <br> <br> <form action="/servlet/acedispatcher" method="get"><br>
<br><input type="Radio" name="parId1" value="0" onClick="submit()"> aa <br><input type="Radio" name="parId1" value="1" onClick="submit()"> bb
<br><input type="Radio" name="parId1" value="2" onClick="submit()"> cc<br> <br> </form></p>
<p><input type="Radio" name="parId0" value="1" onClick="submit()"> two three <br> <br> <form action="/servlet/acedispatcher" method="get"><br> <br>
<input type="Radio" name="parId1" value="0" onClick="submit()"> aa <br><input type="Radio" name="parId1" value="1" onClick="submit()"> bb
<br><input type="Radio" name="parId1" value="2" onClick="submit()"> cc</p>
<p> </form><br> <br><input type="Radio" name="parId0" value="2" onClick="submit()"> two three </p>
<p></form></p>
<div> In this case the parId0 parameter name is repeated twice in the same code.</div>
<div>Once it is displayed as individual radio buttons and once it is displayed in the form of nested,</div>
<div>so when i select the parId0 from the individual parId0 the same radio button gets selected </div>
<div>in the nested one .</div>
<div> </div>
<div> </div>
<div>The Watir code i m using is </div>
<div> </div>
<div> $ie.radio(:name,"parId0",0).set<br> assert($ie.form(:index ,6).radio(:name , "parId0",0).isSet?)<br> <br> <br> $ie.radio(:name,"parId0",1).set</div>
<div> assert($ie.form(:index ,6).radio(:name , "parId0",1).isSet?)<br> </div>
<div>the error i m getting when i run this code is </div>
<div> </div>
<div>1) Error:<br>test_cxipvar(TC_CxIpVar):<br>Watir::Exception::UnknownObjectException: Unable to locate object, using name and parId0<br> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:2416:in `assert_exists'
<br> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:4149:in `isSet?'</div>
<div> </div>
<div>Please go through the above and let me know how can i code in watir the right way</div>
<div>for this.</div>
<div> </div>
<div>Thanks,</div>
<div>Sayali<br> <br><br> </div>
<div><span class="gmail_quote">On 4/6/07, <b class="gmail_sendername">Željko Filipin</b> <<a href="mailto:zeljko.filipin@gmail.com">zeljko.filipin@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi <span>Sayali<span style="FONT-WEIGHT: bold">,</span></span><br><br>Can you post html of that form, your watir code, and error message?
<br><br>Zeljko<br><span class="sg">-- <br>ZeljkoFilipin.com </span><br>_______________________________________________<br>Wtr-general mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Wtr-general@rubyforge.org">
Wtr-general@rubyforge.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://rubyforge.org/mailman/listinfo/wtr-general" target="_blank">http://rubyforge.org/mailman/listinfo/wtr-general</a><br>
</blockquote></div><br>