I have 14 itmes in a drop down that are associated with an
account And these items change with different accounts
I want to be able to define it by and index number or any
other id so if I enter 2 in my Global excel sheet it
selects the 2nd item from the drop down - is this possible?
Answer Posted / nilanjan saha
Suppose we have total 14 items in the weblist...It means that
x=Browser("XYZ").Page("XYZ").Frame("something").WebList
("Listbox").GetROProperty("items count")
msgbox x ' It should print 14
if you want to print all the values of the weblist then use
for loop for that purpose:
For i=1 to x
msgbox Browser("XYZ").Page("XYZ").Frame("something").WebList
("Listbox").getItem(i)
Next
Hope above code will help...
Regards,
Nilanjan
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to test the login page in different ways in automation testing and i need code?
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
Differences between quicktest professional (qtp) and winrunner?
if numbers are always changing write a script for that
what are the utilities and drivers
Explain the checkpoint in qtp?
What are some test assets and related extensions of qtp?
Object repositories types, which and when to use?
How to capture a window in QTP?
What is data driver in qtp? Where we use it?
What are the steps involved in the recovery scenario wizard?
Which functionalities of QTP used in banking project? pls any say answer?
How software tester can use constants and variables in scripts?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
Define Canvas view of UFT?