radio button
-
- Posts: 25
- Joined: Thu Feb 26, 2009 3:21 pm
radio button
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!
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
-
- Posts: 25
- Joined: Thu Feb 26, 2009 3:21 pm
how
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:
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")
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
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
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