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

how to write scripts in QTP?

4 Answers   Ordain Solutions,


What is the limitation to XML Checkpoints?

1 Answers  


how to use command prompt using qtp?

8 Answers   HCL,


What is a Patch in QTP?

0 Answers  


What is API

2 Answers   Satyam,






Please explain how to open with notepad of saved html file by right click option using QTP

1 Answers  


How to Synchronize the Browser at Field level? For example if you put Browser.sync(), its waiting upto for that Browser sync only. It should wait total Browser get upload with fields.

3 Answers   IBM, TCS,


How to create runtime property for an object?

0 Answers  


how did u use automating testing tools in ur job?

0 Answers  


explain qtp framework by taking an example?

3 Answers  


What is the use of "Step Generator" in QTP??for what purpose we are using??explain with an example

2 Answers  


What does VBS file contain?

1 Answers  


Categories