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

Hi All. Can you please explaing what is checkpoint? How it Will Work? what is meaning of "check checkpoint ("proprtname").how it will compate with expected value? Thanks in Advance............... Lakshmi

3 Answers   ITC Infotech, TCS,


is it possible to operate(on/off)the capslock using qtp

2 Answers  


How will you compare keyword and expert view?

0 Answers  


what is the difference btn risks & Therads in the Test plan documentation?

0 Answers   Accenture,


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,






does QTP provides any tools for parametrisation?

4 Answers  


Which scripting language QTP is using?

6 Answers  


Is it possible to use two instances of UFT on the same machine? If not why?

0 Answers  


How can you give wait up to 10 seconds in qtp?

0 Answers  


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

0 Answers   IBM,


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

0 Answers   BirlaSoft,


I have a login page like username, password and login. I have to pass the 50 user names and 50 passwords but how can i test this page with out using parameters?

2 Answers  


Categories