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
Hi How to retrieve data from web element line by line?
Is it possible to merge two object repository files in qtp?
how to know no.of mails in our g mail by using vb-script
What is the basic concept of qtp?
what is keyword driven testing in qtp?n how is it useful?
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?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
how to find that tools work well with your existing system?
How you can replace string in qtp?
How to analyzing the checpoint results?
How many types of actions are there in quicktest professional (qtp)?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
Define Environment Variable in UFT and its uses?
How u will do versioning in QTP?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.