I used child objects to get the no of weblist present in the
weblist.now i need to select the items present in each weblist
?How to do so



I used child objects to get the no of weblist present in the weblist.now i need to select the item..

Answer / Garib Nath Yadav

To select items from a web list using QTP (QuickTest Professional), you can iterate through the collection of child objects representing the list items and perform necessary operations on each item. Here's an example:

Function SelectItemsFromWebList(byName)
Dim WebList
Set WebList = Browser("name=<BrowserName>").Page("path=<PagePath>").WebList(byName)

For i = 0 To WebList.Count - 1
WebList(i).Select()
' Perform operations on the selected item here
Call YourOperationFunction()
WebList(i).Deselect()
Next i
End Function

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How you perform smoke and sanity testing using qtp?

1 Answers   Tech Mahindra,


i want to learn testing tools what i have to know before.iam fresher i dnt know any this..which langagues i have to before testing.

2 Answers   Wipro,


please post the interview questions for QA position in FACTSET

1 Answers   FactSet Systems,


hi, i am trying to capture "web element" names in a web page, and i written the code like this,, with Browser("title:=") with .page("") .webelement("htmltag:=...").getroproperty("innertext") end with end with //////////////////////////////////////////////////////////////////////////////////// QTP RETURN ERROR like this: " object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object" ok fine , i need to search another property other than "index" i use all the properties like class,text,innerhtml,innertext,visible=true,x , y,abs x ,abs y...but qtp returns error ..... in this webpage index is difficult to find? how to solve

1 Answers   IBM,


MANUAL TESTING, AUTOMATION TESTING QTP,QC , Load Runner , SELNEIUM ONLINE TRAINING

0 Answers  


IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp

2 Answers  


How to capture checkbox properties when properties of the object keep changing on relogin to the application.

0 Answers   TCS,


What is the main difference between QTP 8.0& QTP 9.2.And what r the features and benefits of QTP.

1 Answers   HCL,


How to see the screens after running test in QTP?

1 Answers  


What expansion of "MIC" in MICPASS (TEST ReportPAGE)

11 Answers   TCS,


What are SetToProperty, SetRoProperty, GetToProperty scripting?

2 Answers  


For example one window is there the window contain some of Check boxes but my question is how many check boxes are there particular window? Please solve the problem gi_raju@rediffmail.com ippaliraju@yahoo.co.in

3 Answers  


Categories