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

What is VSS? Is it used in Automation(QTP) Or Manual? what is menus in VSS?

3 Answers   TCS,


WHAT IS OBJECT REPROSITORY?

4 Answers   BirlaSoft,


What is the Difference between test object and run time object?

0 Answers  


Could you please any body help me.for example in web table in the first row and first column there are 3 links like l1,l2,l3 having indexes 0,1,2 but second time links will change their order like l2,l3,l1 and indexes also changed how can we handle this situvation with script....

2 Answers  


what is the Command used to start the QTp from Run.(start-> Run)

7 Answers   GE,






What is a data driven test in qtp?

0 Answers  


what is the main use of reviews

2 Answers   Ordain Solutions,


I am having trouble understanding #1 how to paramaterize a userid and password that I need to call in about 25 existing scripts. I need to know how to Create a Reuseable action for 25 existing scripts that will call the exact same userid and password? I need to know how to create a Reuseable action and then have it called by existing scripts being run in a batch.

2 Answers  


What is the difference between Recover Scenario(screen) and on Error Resume Next(code)

4 Answers  


several browsers opened. write QTP script to close all browsers except gmail.

1 Answers   Thomson Reuters,


Can we record an application running on a remote machine using qtp?

0 Answers  


IF application is a Java-based application means 2 0r 3 tier application. How the script will be in QTP. pls kindly give some sample script.

5 Answers   Wipro,


Categories