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
what is test scheduleling?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
Explain how qtp identifies object?
To which environments does quicktest professional supports?
What are the different attributes used with regular expression?
Is it possible to switch between recording modes during a test creation?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
what is the frame work in J-meter?
Explain the types of object repositorys in qtp?
Whether qtp 9.0 supports Test director8.0
Explain qtp(quick test professional)?
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
What are the two types of repositories available, explain them?