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
Explain data driven framework?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
which type of testing process are you following in ur company? how to recognize a qtp page?
What is smart identification in QTP?
Hi, how can we check or avoid the memory leakage in QTP9.2?
what are all the fileds present in object repository?
How can I change object description or check point values in qtp?
What is text check point and text area check point?
What is a checkpoint? How many check points are there in qtp?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What is the difference in testing a client-server application and a web application?
Explain in brief about the quicktest professional (qtp) automation object model?
Where to use Property Let, Property Get, Property Set in UFT
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
Who uses qtp tool?