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
banking domain description for software tester for interview
Explain data driven framework?
what could go wrong with test automation?
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
can u please explain what is the exact difference between qtp8.2 and 9.0
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
What is the parameterization? Give one example?
How to find a window is minimized or not
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
Describe how Smart Identification is used
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
What is the difference between analog and low level recording?
How to break the object spy ?
How to get the particular property value?
how interviews will be on QTP?