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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1741


Difference between action & Reusable action?

854


How to find the length of the string in qtp?

793


How often were they executed?

2242


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.

1812


What are the differences between quicktest professional (qtp) and winrunner?

805


How to find the path of folder in which the test is saved in qtp?

760


Explain the concept of object repository & how qtp recognizes objects?

811


What are the different recording modes?

765


How to give a call to another action from one action?

869


what is the diffrence bw qtp architectute and qtp framework?

1765


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

857


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1822


How does QTP identify an object?

804


What is the difference between byref and byval in qtp?

809