Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Easiest way to verify members of a List/Combobox
#2
Solved: 11 Years, 4 Months ago
I was trying to implement what you said for the appln http://www.flyairdeccan.net/. Was trying to retrieve the values of "From" Select box
Cnt = browser("Deccan").Page("Deccan").WebList("ctlAvailCriteria_cboOrigin").GetROProperty("items count")
wait(3)
Dim FromCities(Cnt)
For i = 0 to Cnt -1
FromCities(i) = browser("Deccan").Page("Deccan").WebList("ctlAvailCriteria_cboOrigin").GetItem(i)
msgbox (FromCities(i))
Next

It gives me two errors
Error for the Line#
Code:
Dim FromCities(Cnt)
Expected integer Constant

Error for the Line#
Code:
FromCities(i) = browser("Deccan").Page("Deccan").WebList("ctlAvailCriteria_cboOrigin").GetItem(i)
The statement contains one or more invalid function arguments

Can you pls let me know where i am doing wrong
Reply


Messages In This Thread
RE: Easiest way to verify members of a List/Combobox - by quickmy - 07-23-2008, 01:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 2,295 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,902 10-25-2016, 06:57 PM
Last Post: robertosalemi
  Need to verify the drop down values based on condition santhoshmscsoftware 1 2,912 05-04-2016, 11:28 PM
Last Post: supputuri
  verify that parent properties match object currently displayed in your application. sona 0 3,137 02-21-2016, 12:00 PM
Last Post: sona
Exclamation How to verify whether pdf is completely loaded or not in webpage nmakkena 1 2,685 08-27-2014, 04:09 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)