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
Which functionalities of QTP used in banking project?
hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this
what is impact analysis on regression testing?
How software tester can use constants and variables in scripts?
Hi, Can we open a test in qtp10 which is saved in qtp 9.2?
How to define array in qtp?
what is test scheduleling?
In qtp, how you can use xpath to identify objects?
What are the different types of checkpoints?
What are the different types of action?
after initiating one project for testing, when exacltly QTP tester role starts?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
How many tabs are available in debug viewer pane?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
How you can decide which type of object repository you have to use?