How can i select multiple values from drop down list using
vb script in qtp?
and wt is the script for clicking msg box box automatically
with a specific time.

Thanks in advance...Kalyani.

Answers were Sorted based on User's Feedback



How can i select multiple values from drop down list using vb script in qtp? and wt is the script..

Answer / sasmita

object.ExtendSelect Item -> This you can use to select
multiple items from a drop down list.

Ex:
'The following example uses the ExtendSelect method to
select multiple, non-consecutive items in a list.

Browser("FastFoodHaven").Page("KidsMeals").JavaApplet
("Foodlist").JavaList("Entrees").Select "Hamburger"

Browser("FastFoodHaven").Page("KidsMeals").JavaApplet
("Foodlist").JavaList
("Entrees").ExtendSelect "ChickenSandwich"

Browser("FastFoodHaven").Page("KidsMeals").JavaApplet
("Foodlist").JavaList("Entrees").ExtendSelect "HotDog"

Is This Answer Correct ?    8 Yes 2 No

How can i select multiple values from drop down list using vb script in qtp? and wt is the script..

Answer / bhargavi

Set x =CreateObject(”WScript.Shell”)
x.Popup “message content”, 5, “msg header”, (0+48)

the above code will close the msgbox after 5sec

but where as selecting multiple items in a list box i never
tried it

Is This Answer Correct ?    5 Yes 8 No

Post New Answer

More QTP Interview Questions

in qtp wha t is synchronisatin pt,what is the maximam time out

3 Answers  


what is Automation frame work and how do u used this for your project?

3 Answers  


Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Library functions folder? How to cal that functions to our script? How to save that functions to Function generator?

3 Answers  


Can we add the objects of an application dynamically?

2 Answers   KEN Group, LD College,


What is the difference between QTP 8.2 and QTP 9.2

1 Answers  






Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)

0 Answers  


can i login a page by giving username and password and click on ok button through database parameterization.and if its yes then please write the code of that

2 Answers   Ness Technologies,


Hello Everybody, please tell me how to use accessibility checkpoint and XML checkpoint by giving any practical example of it.please provide me the steps to perform that and also pls provide the code too. Thanks in advance, Gaytri

1 Answers  


. My application is updating the user information in the application. Every time it is Adding on record in my application and Validating the information like “Record has added successfully”. Which Check point I have to put in this situation? Why?

5 Answers   Polaris,


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

9 Answers   CTS,


what type of application we can select for automation testing and what is the entry criteria for automation

1 Answers  


How to use setroproperty?

0 Answers  


Categories