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

Answer Posted / minni

u can use GETITEMCOUNT to count the items in a list
box.For an example see the below script.

msgbox Window("flightreservation").Wincombobox
("flyfrom:").getitemcount

Is This Answer Correct ?    25 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do know the number of browsers opened?

629


What are advantages of test automation?

673


How we can import data from database?

653


What are the disadvantages of recording test cases in qtp?

598


How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1543






I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.

1587


What is the purpose of loading qtp add-ins?

629


how do i know how to use tools

1456


Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

1393


What is the architecture of your project? Can any one answer for this question plz........

1414


I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2356


Can launch two instances of qtp on the same machine?

583


wht type of User defined functions or Java Releated functions do we write in VB scripting

1833


Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?

568


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1698