Write the code for select the 5 values from drop down list.
drop down list having the 10 values.

Answer Posted / pavani prasad

we can select more than one value from drop own list by
using "extendedselect" option

Browser(" ").Page("").WebList("").Select " first item"
Browser(" ").Page("").WebList("").extendeSelect "#1"
Browser(" ").Page("").WebList("").extendedSelect "#2"

Browser(" ").Page("").WebList("").extendedSelect "#3"

Browser(" ").Page("").WebList("").extendedSelect "#4"

or

if the items are consecutive, then

for i=0 to 4

Browser(" ").Page("").WebList("").extendedSelect ("#"&i)

if i am worng pls correct me

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define virtual object?

824


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1590


What is the differences between image check point and bit map check point?

798


What is the difference between a Function and Procedure in QTP?

925


Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma

1561


How do I get the QTP scripts result in xml format by using vb script function?

2027


How to run a test using quicktest professional?

747


What is difference between run time object and test object?

788


What are the steps involved in recovery scenario wizard?

754


I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?

1894


What is the quicktest professional (qtp) testing process?

777


Output values? i want a practical example

1536


Is it possible to change the values of analog recording?

837


What are the different recording modes and how do they work?

844


WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT

1955