Exforsys

Free Training

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

Go Back   Exforsys > Testing > Software Testing

Exforsys.com


Software Testing Software testing is a process used to identify the correctness, completeness and quality of developed computer software.

Reply

 

LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 07-14-2009, 08:30 PM
Junior Member
 
Join Date: Jul 2009
Posts: 1
Silktestnew is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-07-2009, 09:23 AM
Junior Member
 
Join Date: Jul 2009
Posts: 12
basanth27 is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
QTP Scripting listbox item select on Mobile Device. PDAautomator Software Testing 1 06-26-2009 12:07 PM
Count of items in a listbox bbb09 Visual Basic Tutorials 0 12-10-2008 03:47 PM
Counting identical items in listbox Fatboy58 Visual Basic Tutorials 1 03-08-2008 05:18 AM
javascript - display items in listbox matching the keys pressed sansircar Microsoft .NET 0 02-05-2007 05:55 PM
Urgent need of Quick Test Pro[QTP] Tutorial balaji_goli Testing Tutorials 23 09-10-2006 10:56 PM


All times are GMT -4. The time now is 11:33 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.