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


Please Help Members By Posting Answers For Below Questions

can test automation improve test effectiveness?

1478


what is the difference between development and testing

2347


when to start the automation?

1468


how to explain a claims and insurance project?

1740


What is the difference between qtp and selenium?

536






What is checkpoints for quicktest professional?

538


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1938


Can you brief the hurdles you faced during Automation testing?

569


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1490


Differences between quicktest professional (qtp) and winrunner?

615


What are advantages of test automation?

652


How do I get the QTP scripts result in xml format by using vb script function?

1774


Discuss the QTP Environment?

615


what is stepin & stepout?

1409


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1415