I have multiple radio buttons i need to select a radio
buton and i dont want to hard code i have a generic
function for it there i have used select#0 so it selects
first radio button but for other script i want to select
the 4th radio button how i can make it still more generic

Answer Posted / saisree

Hi

i tried to solve my problem but i didn't get how to do. can you please help me.

I have one web application in that when you are going to click webedit that will generate one window in that so many radio buttons are there i have click one radio button but all the properties are same for all radio buttons and index is not there and i have to select randomly i tried above code also its not working. please help me

My code:
With browser("title:=Hospital Management System")
With .page("title:=Hospital Management System")

.link("name:=Transactions","x:=-11215").Click
.link("name:=Purchase Invoice","x:=-23040").Click
.webedit("name:=supcode").Click
Dim variable2
Set desc=description.Create()
desc("micclass").value="WebRadioGroup"
Set radio=.ChildObjects(desc)
radiocount=radio.count
msgbox radiocount
For i=o to radiocount-1
itemcount=radio.item(i).GetRoProperty("items count")
msgbox "item count:" & itemcount
Next
variable2=RandomNumber(0,(itemcount-1))
randselection="#" & variable2

Mesgbox showing "0" radio buttons in page

End with
End with

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain data driven framework?

548


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1532


which type of testing process are you following in ur company? how to recognize a qtp page?

1378


What is smart identification in QTP?

603


Hi, how can we check or avoid the memory leakage in QTP9.2?

1676






what are all the fileds present in object repository?

1533


How can I change object description or check point values in qtp?

536


What is text check point and text area check point?

582


What is a checkpoint? How many check points are there in qtp?

504


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

2816


What is the difference in testing a client-server application and a web application?

554


Explain in brief about the quicktest professional (qtp) automation object model?

535


Where to use Property Let, Property Get, Property Set in UFT

348


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1411


Who uses qtp tool?

550