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
What is Cross browser testing? Does UFT support it?
How can you handle exceptions in qtp?
what testplan contents and what test strategy contents,what is the diff b/w them
How do you create new test sets in td?
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
What is the difference between run time object and test object in QTP?
Explain building blocks of the bpt framework ?
What is qtpro?
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 to create scenario selector
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
How you can make an action as re-usable action?
Explain about the test fusion report of quicktest professional?
How you can find the absolute value of the number in qtp?