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
when to start the automation?
Explain the concept of object repository?
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
Hi,All How to create a link in excel sheet using qtp
Do you know how to connect database? Can you tell me the procedures?
Explain calling sub procedure.
when will you do debug your script? and explain that process?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
what are the challenges you have faced while testing web based application using the automation tools ?
How many types of recording modes in qtp?
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
What are the Application Functions available in QTP?
What are the check points can be inserted without recording?
terminal services client
is it possible to add sheets to excel at runtime