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


Please Help Members By Posting Answers For Below Questions

when to start the automation?

1475


Explain the concept of object repository?

526


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)

1551


Hi,All How to create a link in excel sheet using qtp

3000


Do you know how to connect database? Can you tell me the procedures?

547






Explain calling sub procedure.

624


when will you do debug your script? and explain that process?

1451


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?

1671


what are the challenges you have faced while testing web based application using the automation tools ?

596


How many types of recording modes in qtp?

585


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1355


What are the Application Functions available in QTP?

1475


What are the check points can be inserted without recording?

596


terminal services client

1786


is it possible to add sheets to excel at runtime

3232