Write the code for select the 5 values from drop down list.
drop down list having the 10 values.
Answer Posted / balaji
For eg:If the weblist contains some x no. of values and if
we want to select only 10 out of it then
i=browser(..).Page(..).weblist(...).Getitemscount()
For j=0 to i
if j<5 then
browser(..).Page(..).weblist(...).select j
end if
next
This code will retrieve only the first 5 values
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
We stored into the objects OR and then write the scripting
What is file database?
can i compare two databases using QTP ?
How to test background color and dynamic images during run time can you put the check point for moving objects?
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
How to record application running on the Virtual machine?
how interviews will be on QTP?
What are the methods used in UFT to handle exceptions or run-time errors?
Can the user toggle between using Local OR and shared OR for the same action?
How would you export a script from one pc to another in qtp?
Can any one send me the QTP Basic Coding Samples?
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
could any help me please, how to work on visual foxpro application using UFT
is it possible to add sheets to excel at runtime
when to start the automation?