radio button

Ranorex Studio, Spy, Recorder, and Driver.
paracelsus
Posts: 25
Joined: Thu Feb 26, 2009 3:21 pm

radio button

Post by paracelsus » Mon Mar 09, 2009 1:34 pm

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!

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Mon Mar 09, 2009 2:24 pm

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

paracelsus
Posts: 25
Joined: Thu Feb 26, 2009 3:21 pm

how

Post by paracelsus » Mon Mar 09, 2009 4:08 pm

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")

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Mon Mar 09, 2009 4:32 pm

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