How can i select multiple items from a WebList bOX USING QTP

Answer Posted / ragupathi from syntel

Dim a,i

'Getting list box count

a=Browser().Page().Weblist(WebListName).GetItemsCount

'getting list box values

For i=0 to a-1
msgbox Browser().Page().Weblist(WebListName).GetItem
(i),4,"States"
Next

Is This Answer Correct ?    2 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain qtp(quick test professional)?

576


How to find the path of folder in which the test is saved in qtp?

532


How will you test a keyboard?

599


How does qtp identify gui object?

584


Write a script to verify font style and color of a windows object using descriptive programming

831






what is the advantages and disadvantages of using functions instead of re usable actions

1425


How to check bitmap output value?

624


Difference between copy to action and call to action?

589


How software tester can use constants and variables in scripts?

1684


By using QTP can we record any log files written by the application which is in execution?

1471


How you create new action in qtp?

560


What are the key points to create a framework in QTP for oracle forms?

1807


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1757


What is contained in the object repository?

613


Can we create user defined functions in qtp?

551