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

Answer Posted / nani

The Following script displays the number of items in the
list box.

intFieldItemsCnt =CInt(GetProperty(Browser
("Browsername").Page("Pagename").Weblist
("weblistname"),"items count"))

msgbox intFieldItemsCnt

Any doughts feel free to make a mail to: nani4urs@gmail.com

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1413


Tell some commonly used Excel VBA functions?

605


What are the differences between quicktest professional and winrunner?

538


Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak

1633


What is a recovery scenario?

571






What is the parameterization?

580


How will you compare keyword and expert view?

541


What are some test assets and related extensions of qtp?

555


WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,

1504


Give the syntax to import/export xls into qtp.

588


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

1579


What is Distributed testing? How does UFT support it?

608


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

568


What is the difference between byref and byval in qtp?

587


What are the types of object repositories? Which one is you are using?

633