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 to explain a banking project in interview as a test engineer???
What are the types of environment variables in qtp?
What is throw Object?
How to integrate the qualitycenter with qtp
can any body give the banking domain concepts/links
What is CMMP and CMMH?
write a script to verify the image path(src property) of the images which are in web pages.
how to evalute defects in QTP script?
Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma
What is the XML file architecture ?
What is different command used in command Prompt while using QTP?
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
Is it possible to split an action? How?
what is defenetion of kiran can u tell me plz CVS, SVN
Hi, how can we check or avoid the memory leakage in QTP9.2?