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

Answers were Sorted based on User's Feedback



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

Answer / sri satya

Hi,
You can select multiple items from the Web List by using
ExtendSelect.
For Ex:

Browser().Page().Weblist(WebListName).Select(WebListValue1)
Browser().Page().Weblist(WebListName).ExtendSelect
(WebListValue2)
Browser().Page().Weblist(WebListName).ExtendSelect
(WebListValue3)
.................. ....... (WebListValue4)
.................. .......(WebListValue5)

Is This Answer Correct ?    29 Yes 2 No

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

Answer / bhavya

' Check if multiple items exist in
listbox, IF yes, then select those ELSE report error
Dim AppList ,Obj
AppList = ListApplicationsToSelect()
Set Obj = Browser("SMART").Page("Add User").WebList
("seiApp")
ItemSelected = SelectMultipleListItems
("SEI_Applications", Obj, AppList)
SelectMultipleListItems(
If ItemSelected <> "PASS" Then
AddUserInfo_Page1 = ItemSelected
'Exit function
end if

Is This Answer Correct ?    6 Yes 3 No

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

Answer / 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

More QTP Interview Questions

How to change the scripts from Per-Action object repository to shared object repository

1 Answers  


hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every time 9 th one how can i select plese help me regards balaji

4 Answers  


What is object repository?

3 Answers  


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

0 Answers  


can a Function return more than one value..??? if so please give me the code for that.

5 Answers   DST Global Solutions,






Synchronozation types in QTP

11 Answers   Diebold,


What is the extension for Recovery scenario?

2 Answers  


how can we group that these test cases only should be automated and in which order you execute that test cases?

2 Answers   BSL,


Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...

2 Answers   TCS, Virtusa,


What does it mean when a check point is in red color? what do u do?

1 Answers  


Which environments does qtp support?

0 Answers  


Object recognition in QTP is based on which model ? a) COM b) DCOM c) DOM d) None of the above

2 Answers   Ordain Solutions,


Categories