Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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 ...

  1. #1
    Silktestnew is offline Junior Member Array
    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.


  2. #2
    basanth27 is offline Junior Member Array
    Join Date
    Jul 2009
    Answers
    12
    Quote Originally Posted by Silktestnew View Post
    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 !!!

    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...