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
What are the trigger events in qtp?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
How QA specialist can identify when programmatic descriptions are useful?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief
Does Low-level recording capture mouse movements?
Explain qtp(quick test professional)?
How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one
can anyone tell me from where i can download qtp demo or crack version
What is the difference between analog and low level recording?
How do we handle run-time errors?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
What is a Patch in QTP?
Tell some commonly used Excel VBA functions?
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?