Page 1 of 1

radio button

Posted: Mon Mar 09, 2009 1:34 pm
by paracelsus
I'd like to test a website, where are three radio button. Their names are same, but thw ids are different. How can I search and checked these to true in VB.NET? Please help me!

Posted: Mon Mar 09, 2009 2:24 pm
by Support Team
Hey paracelsus!

To access Multiple Radio Buttons with the same name use the @Id or @Value attributes in RxPaths (e.g. use Ranorex Spy on your radio buttons).

Regards,
Christian,
Ranorex Support Team

how

Posted: Mon Mar 09, 2009 4:08 pm
by paracelsus
Thx for your reply. But I dont know that how can it use. Can you help me?
I need to use this in the following code:

Code: Select all

repo.WebDocumentPosta_Biztosito.DivTagDivCalculateData.InputTagCtl00DollarMPBISSContent.Click
Delay.Milliseconds(940)
report.Info("REPLAY","repo.WebDocumentPosta_Biztosito.DivTagDivCalculateData.InputTagCtl00DollarMPBISSContent.Click(9;6) SUCCESSFULLY")

Posted: Mon Mar 09, 2009 4:32 pm
by Support Team
Thats code from the recorder file. You should edit the RxPath in the repository or drag drop a new one from Element Tree Pad.

or

Drag drop the item directly to the source code. Ranorex Studio creates an object of the radio button element. After that, you can call the .Click() method.


You also can scroll to the referenced repository item definition "repo.WebDocumentPosta_Biztosito.DivTagDivCalculateData.InputTagCtl00DollarMPBISSContent" and edit your RxPath.

edit the rxpath like,
from:
...input[@name='multiple' and @type='radio']
to:
...input[@name='multiple' and @type='radio' and @Id='1']


Regards,
Christian,
Ranorex Support Team