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

What are the main differences of qtp and win runner?

595


When do go for loop condition in test?

654


how to evalute defects in QTP script?

1490


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1667


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2104






Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1754


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1715


What is an expert view and keyword view?

572


In qtp, how you can exit for loop?

527


I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me

1424


How to add verification steps to tests?

9130


How will internal and external links be validated and updated? how often?

640


Suppose I want fail that check point? How can you do that?

598


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1506


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

1455