For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
Course Name Date Time Duration Type Location
An important update from QtpSudhakar. I stopped giving classroom training in MindQ Systems. I have bigger plans and I want to put an end to regular classroom training because very less people are practicing. From now onwards every session of mine is going to have explanation and practice. Everyone should practice in presence of mine and should go out of classroom with practical knowledge. So I started my own institute AnyTechLabs in Madhapur. Please reach out to +91-8328152362 for course details. Visit AnyTechLabs.com for address details.
Selenium + Cucumber 24th October 7.30 AM IST to 9.00 AM IST 45 Days WeekDay Online

A book "Cracking the QTP interview" authored by Sudhakar.Read More. Buy From FlipKart

Monday, May 4, 2009

ListBox Object

The default method for List box is "Select".
Browser("Mercury Tours").Page("Find Flights").WebList("depart").Select "London"
Can we do anything more with ListBox?
1. Selecting more items in a list
2. Get all items from a list
'Selecting more items in a list
Browser("Mercury Tours").Page("Find Flights").WebList("depart").Select "London"
Browser("Mercury Tours").Page("Find Flights").WebList("depart"). ExtendSelect "Paris"
'Select is to select single item in a list box
'ExtendSelect is to select more than one item after selecting an item in list box using select method
'Get all items from a list
Dim iCount
Dim iIndex
iCount=Browser("Countrywide").Page("Countrywide").WebList("LoanType").GetROProperty("items count")
For iIndex=1 to iCount
msgbox Browser("Countrywide").Page("Countrywide").WebList("LoanType").GetItem(iIndex)

1 comment :

  1. How to Remove the Duplicate value in List box list using vb script.. plz tel