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
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
What are the flaws in water fall model and how to overcome it?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
What does mean by Scope of Automation?n How we defined it?
Where can I find and view run-time data table?
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?
tell me QTP standards ?plz
Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?
How many types of recording modes in the qtp?
How will you compare keyword and expert view?
please post the interview questions for QA position in FACTSET
Explain about Test Fusion Report of QTP?
Explain QTP using different development techniques ?
Describe how Smart Identification is used
What is the file extension of the code file and object repository file in QTP?