How can i count the list box elements in QTP ?using script
plz explain me (Chandana)

Answer Posted / rajaputra

url="http://corp.naukri.com/mynaukri/mn_newsmartsearch.php?xz=2_0_5&id="
Systemutil.Run "Iexplore.exe",url
set oDesc= Browser("name:=Mynaukri : naukri.com - India's
No.1 Job Site")
itemcount=oDesc.WebList("name:=qe").GetROProperty("items count")
msgbox "Number of Items in Experience List= "& itemcount
itemcount=oDesc.WebList("name:=qm").GetROProperty("items count")
msgbox "Number of Items in Minimum Salary List= "&itemcount

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of action?

545


How to use debug tools?

2186


Explain how qtp identifies object?

601


What are the two types of repositories available, explain them?

582


In qtp, how you can use xpath to identify objects?

600






I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2

1483


What is checkpoints for quicktest professional?

538


What are the Application Functions available in QTP?

1465


What is business process testing(bpt) in qtp?

680


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

1796


Tell some commonly used Excel VBA functions?

587


Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1542


which type of testing process are you following in ur company? how to recognize a qtp page?

1397


what you mean by artifact,milestone...

1485


Explain actions in qtp ?

546