Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi,
I have weblist which contains the data like Design
change,admin edit and cost saving etc.. User doesn't know
the values existed in weblist. Now the user has to select
the right value from the list otherwise the test will fail.
Pls help me "To select the correct value from the list"

Answer Posted / kashinath hajare

Hi,
Suppose you have Weblist which
contains "English", "Marathi","Hindi" options and you want
to check this options and select "English from it. please
check following code for the same.

Dim sValue
sValue=Browser("xyz").Page("abc").WebList
("wblLanguage").GetROProperty("all items")
msgbox sValue

If InStr(Browser("xyz").Page("abc").WebList
("wblLanguage").GetROProperty("all items"),"English")=
False Then
Reporter.ReportEvent micFail, "Check Fields on
Compose page","The Dropdown list doesn't contain English
item"
msgbox "Fail"
Else
msgbox "Pass"
Browser("xyz").Page("abc").WebList
("wblLanguage").Select "English"
End If

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When to use shared and local object repository?

1043


who QTP recognizes the object stored in object repository?

2066


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1812


assume i have few url link how will i dynamically call then using descriptive programming?

1989


How many scripts did you have?

2153


What is test object?

1110


Define virtual object?

1105


How do we handle run-time errors?

1009


Whats the realtime QTP testing process

2413


How to modify object property in qtp ?

978


Explain data driven framework?

1034


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

1107


What is Distributed testing? How does UFT support it?

1022


Object repositories types, which and when to use?

1041


How you can find the absolute value of the number in qtp?

972