<div>Hi Zeljko,</div>
<div>Here is the html that is generated,</div>
<div>&nbsp;</div>
<p>&lt;form action=&quot;/servlet/acedispatcher&quot; method=&quot;get&quot;&gt;</p>
<p>&lt;input type=&quot;Radio&quot; checked&nbsp; name=&quot;parId0&quot; value=&quot;0&quot;&nbsp; onClick=&quot;submit()&quot;&gt; one two&nbsp;<br>&nbsp;<br>&nbsp;&nbsp;&lt;form action=&quot;/servlet/acedispatcher&quot; method=&quot;get&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; <br>&lt;input type=&quot;Radio&quot;&nbsp;&nbsp; name=&quot;parId1&quot;&nbsp;&nbsp; value=&quot;0&quot;&nbsp; onClick=&quot;submit()&quot;&gt; aa <br>&lt;input type=&quot;Radio&quot;&nbsp;&nbsp; name=&quot;parId1&quot;&nbsp;&nbsp; value=&quot;1&quot;&nbsp; onClick=&quot;submit()&quot;&gt; bb
<br>&lt;input type=&quot;Radio&quot;&nbsp;&nbsp; name=&quot;parId1&quot;&nbsp;&nbsp; value=&quot;2&quot;&nbsp; onClick=&quot;submit()&quot;&gt; cc<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;</p>
<p>&lt;input type=&quot;Radio&quot;&nbsp; name=&quot;parId0&quot;&nbsp; value=&quot;1&quot;&nbsp; onClick=&quot;submit()&quot;&gt; two three <br>&nbsp;<br>&nbsp;&lt;form action=&quot;/servlet/acedispatcher&quot; method=&quot;get&quot;&gt;<br>&nbsp;<br>
&lt;input type=&quot;Radio&quot;&nbsp;&nbsp; name=&quot;parId1&quot;&nbsp;&nbsp; value=&quot;0&quot;&nbsp; onClick=&quot;submit()&quot;&gt; aa <br>&lt;input type=&quot;Radio&quot;&nbsp;&nbsp; name=&quot;parId1&quot;&nbsp;&nbsp; value=&quot;1&quot;&nbsp; onClick=&quot;submit()&quot;&gt; bb
<br>&lt;input type=&quot;Radio&quot;&nbsp;&nbsp; name=&quot;parId1&quot;&nbsp;&nbsp; value=&quot;2&quot;&nbsp; onClick=&quot;submit()&quot;&gt; cc</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&lt;input type=&quot;Radio&quot;&nbsp; name=&quot;parId0&quot;&nbsp; value=&quot;2&quot;&nbsp; onClick=&quot;submit()&quot;&gt; two three &nbsp;</p>
<p>&lt;/form&gt;</p>
<div>&nbsp;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>&nbsp;</div>
<div>&nbsp;</div>
<div>The Watir code i m using is </div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ie.radio(:name,&quot;parId0&quot;,0).set<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; assert($ie.form(:index ,6).radio(:name , &quot;parId0&quot;,0).isSet?)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ie.radio(:name,&quot;parId0&quot;,1).set</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; assert($ie.form(:index ,6).radio(:name , &quot;parId0&quot;,1).isSet?)<br>&nbsp;</div>
<div>the error i m getting&nbsp;when i run this code&nbsp;is&nbsp;</div>
<div>&nbsp;</div>
<div>1) Error:<br>test_cxipvar(TC_CxIpVar):<br>Watir::Exception::UnknownObjectException: Unable to locate object, using name and parId0<br>&nbsp;&nbsp;&nbsp; c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:2416:in `assert_exists&#39;
<br>&nbsp;&nbsp;&nbsp; c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:4149:in `isSet?&#39;</div>
<div>&nbsp;</div>
<div>Please go through the&nbsp;above and let me know how can i code in watir the right way</div>
<div>for this.</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>Sayali<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>&nbsp;</div>
<div><span class="gmail_quote">On 4/6/07, <b class="gmail_sendername">Željko Filipin</b> &lt;<a href="mailto:zeljko.filipin@gmail.com">zeljko.filipin@gmail.com</a>&gt; 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>