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
Define virtual object?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
What is the differences between image check point and bit map check point?
What is the difference between a Function and Procedure in QTP?
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
How do I get the QTP scripts result in xml format by using vb script function?
How to run a test using quicktest professional?
What is difference between run time object and test object?
What are the steps involved in recovery scenario wizard?
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?
What is the quicktest professional (qtp) testing process?
Output values? i want a practical example
Is it possible to change the values of analog recording?
What are the different recording modes and how do they work?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT