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"



Hi, I have weblist which contains the data like Design change,admin edit and cost saving etc.. Us..

Answer / 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

More QTP Interview Questions

what is Defect density, defect leakage, defect age,latentbed,yasid testing, interface

4 Answers   Syntel,


how to count the word "IS" is repeated in the application using DP

3 Answers   DST Global Solutions,


When using descriptive programming?

0 Answers  


Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri

2 Answers  


how to write regular expression for Date field?

12 Answers   Google,






DIFFERENCE BETWEEN WR 8.2 & QTP 8.2? HOW TO INTEGRATE WITH SOME OTHER TOOLS?

1 Answers   CTS, Maveric,


How to handle Run-time errors?

1 Answers   Crea,


How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)

5 Answers  


how to parameterizing values from an excel sheet in Quick test professional?

1 Answers  


What is an other way of "Wait" statement in QTP I dont want to use wait("Some number"). Can any one tell this please..........

10 Answers   ADP, AZTEC,


How to execute a VBS file without using Execute File statement?

3 Answers   iGate,


what is the framework followed by ur company in qtp

5 Answers   Ordain Solutions,


Categories