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

Answer Posted / ashish srivastava

Copy and paste the Below code

dim CountItem

countItem=Browser().Page().Weblist().GetROProperty("Itemcount")

For i = 1 to CountItem
Browser(). Page(). Weblist().Select i
if i >5 then
Browser(). Page(). Weblist().ExtentedSelect i
end If
Next

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is file database?

1694


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

1441


How will you check a web application for broken links using qtp?

553


If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP

1301


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1378






can any one say that where we can download the QTP trail version ??????????

1364


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2169


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1682


How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)

1855


In qtp is it possible to check broken links of a page?

587


Please guide me release notes of Automation once scripts are completed

1466


What are the challenges u faced in testing with crm domain? How u overcome with?

1487


How you can replace string in qtp?

572


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

557


What is data driver in qtp?

578