How will u find that how many List boxes( and check boxes)
are present in one particular window
Answer Posted / nanda
Hi,
try this code...
set odesc = discription.create
odesc("Class Name").value ="WinCheckBox"
odesc("native class").value="Button"
set checkboxcount= window("<window name>").childobjects
(odesc)
counts=checkboxcount.count
msgbox counts
u will get number in msgbox.
please ping me if there is any feedback.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is Curd testing?
Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.
Is qtp supports uni-code?
how to post xml data from QTP scripts to any application?
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
Hi Samrat, Thank u very much, what u said it is right.
Can any one send me the QTP Basic Coding Samples?
what is ODC and GDC?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
Explain the check points in quicktest professional?
can any body give the banking domain concepts/links
Hi All, How to get repeated word in string . Thanks Balaji
How to use checkpoints in qtp ?