
- Forum
- Testing
- Software Testing
- Automate a Listbox
Automate a Listbox
This is a discussion on Automate a Listbox within the Software Testing forums, part of the Testing category; I am trying to automate the Country list box. Eg: Yahoo registration page Country drop down listbox. I need to ...
-
07-14-2009, 07:30 PM #1
- Join Date
- Jul 2009
- Answers
- 1
Automate a Listbox
I am trying to automate the Country list box. Eg: Yahoo registration page Country drop down listbox.
I need to fill all the other text box field in the registration page with static text data.And then only for the country Listbox i need to get the list of countries from a .txt file and set it in my listbox, on after the other in a loop.
-
I will show you how to catch a fish...you practice fishing !!!I am trying to automate the Country list box. Eg: Yahoo registration page Country drop down listbox.
I need to fill all the other text box field in the registration page with static text data.And then only for the country Listbox i need to get the list of countries from a .txt file and set it in my listbox, on after the other in a loop.
Set Fso = CreateObject("Scripting.FileSystemobject")
Fso."Several Options avaliable. Readline to readall. Google it and you will know"
Read one after the other in a For Loop and then input . Like
For i = 0 to totalcountries-1
country = Fso.ReadLine i
.Set country
Next
The above is a sample code and is not a gurantee that it will work. but the logic applies.

Reply With Quote






