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
How will you compare keyword and expert view?
Name the properties you would use for identifying a browser and page when using descriptive programming?
Explain the difference between check point and output value?
How did you use regular expressions in QTP and also in WR?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
What environment does qtp run in?
What is the expert view?
How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
Explain in brief about the quicktest professional automation object model?
How many ways we can parameterize data in quicktest professional (qtp)?
Does quicktest professional is unicode compatible?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
If I change the property value at runtime is it effect is object repository?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?