Jassi,

I'm not sure what commands were added in the different versions, and 
without the actual error you're getting and without the actual HTML it's 
hard to be certain what's wrong.  In particular, I'd like to see the 
HTML for the radio buttons that you're trying to set.  The form of the 
radio command I gave you assumes that the id is the value of the radio 
button.  If that value is the id in the radio button you'd use a 
different form like "test_site2.radio(:id, id).set" (set the radio 
button with the id equal to the value in your id variable).

What I'd do in this situation is to run these commands in IRB and see 
what output I get after each command.  For example, after the cell 
command you should see a valid id.  You could also enter 
"test_site2.cell(:text, "Arbitration").html" to see the entire html for 
the cell.

Once you're sure that you have the right value in your id variable then 
you need to make sure that you are able to find the correct radio button 
with the value equal to the id variable.  Working in IRB lets you try 
different things very quickly to find the exact command you need.

If you could be more specific about where things are failing and send 
along the HTML for the radio buttons then we'll have a better chance to 
help.

I'm going to be away from the computer for a few days, but if you're 
still having problems next week I'll continue to try and help.

David

Jassi Akkal wrote:
> David,
>
> Do I have to have 1.5 version of the watir because I
> am using 1.4 version.
>
> Also here is the updated code and still it is not
> working
>
>
> test_site2 = Watir::IE.attach(:url,
> 'http://gcmapp2.qa.kryptiq.com:8080/guardian/servlet/guardian/template/ItemChooser.vm?chooserType=CUSTOM_CONTRACT_DOCSET')
>
> id =test_site2.cell(:text, "Arbitration").id
>
> test_site2.radio(:name, "selectionids", id).set
>
> test_site2.image(:id,"btnChooseSelected").click
>
> Appreciate that.
>
> Thanks
>
> Jassi Akkal
> --- David Schmidt <[EMAIL PROTECTED]> wrote:
>
>   
>> Jassi,
>>
>> One thing I see is that you didn't include the Watir
>> object for the 
>> radio button.  Also, you placed quotation marks
>> around the "id" in the 
>> radio setting line.  You don't want an id that is
>> equal to "id", you 
>> want what's in the variable "id" so there would be
>> no quotation marks 
>> around the variable name.  The line to set the radio
>> button should read:
>>
>> test_site2.radio(:name, 'selectionids', id).set
>>
>> David Schmidt
>> [EMAIL PROTECTED]
>>
>> Jassi Akkal wrote:
>>     
>>> Bret,
>>>
>>> Thanks for the help. But it is not working for me
>>>       
>> and
>>     
>>> here is my code
>>>
>>> test_site2 = Watir::IE.attach(:url,
>>>
>>>       
> 'http://gcmapp2.qa.kryptiq.com:8080/guardian/servlet/guardian/template/ItemChooser.vm?chooserType=CUSTOM_CONTRACT_DOCSET')
>   
>>> id =test_site2.cell(:text, "Arbitration").id
>>>
>>> radio(:name, "selectionids", "id").set
>>>
>>> test_site2.image(:id,"btnChooseSelected").click
>>>
>>>
>>> Any help will be appreciated.
>>>
>>> Thanks
>>>
>>> Jassi Akkal
>>>       

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to