How can i count the list box elements in QTP ?using script
plz explain me (Chandana)
Answer Posted / pbre
hi you can try this one
browser("SCP").Page("SCP").WebList("ctl00$WebPartManager1
$ResultSu").Click
a = browser("SCP").Page("SCP").WebList("ctl00
$WebPartManager1$ResultSu").GetROProperty("items count")
msgbox a
For i=1 to a
c =browser("SCP").Page("SCP").WebList("ctl00$WebPartManager1
$ResultSu").GetItem(i)
reporter.ReportEvent micPass,c,c
Next
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Explain in brief about the quicktest professional (qtp) automation object model?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
What is accessibility check point?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
Explain advantages and disadvantages kdf?
what is the difference between data driver & data driven and driver script?
Suppose I want fail that check point? How can you do that?
What is the difference between per-action and shared?
How many add-ins comes by default with quicktest professional (qtp)?
wht type of User defined functions or Java Releated functions do we write in VB scripting
What is the basic concept of quicktest professional (qtp)?
Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
What is the difference between local and shared object repository in qtp?