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 / 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 |
what is the hierachy of Descreptive programming?
QTP supports both client server and Web applications. Does it support Plug-in?
Any limitation to XML Checkpoints?
Synchronozation types in QTP
how u test a frame in a web page using QTP?
what is stlc and its contents?
What does ".mst" stands for? (abc.mst)
What is FRAME WORK? How many Frameworks can QTP supports?
How to find the length of the string in qtp?
Does the Existing reusable action can be modified at the time of calling the action?? Please help me..
What is ‘object spy’ and what is the function of object spy in qtp?
Hi all, i have installed QTP8.2 in my system. but script is not generating while recording. What is the problem? is any file missing? pls let me know anybody...Thnaks