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

What does "Dynamic change on web pages" means.As per my knowledge, this comes in "Complete" level of Active screen capture levels, where it says, "Also dynamic changes on web changes are saved.so i want to know what type of dynamic changes are made and is this dyanmic changes efftes only on web application or any other?

0 Answers   EDS,


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

2 Answers   BSL,


can anybody give me the links for vb script material

1 Answers  


How to invoke Mozilla from QTP thru VB Script

2 Answers  


Write the regular expression code, it accepts the alpha, numeric and special symbol and the first character should be the Alphabet. Tell me the answer

3 Answers   IBM,


How to retrieve data from application objects?

1 Answers  


what the difference between shared repository and per action repository?

0 Answers  


What is object & properties (in QTP)

5 Answers   Ordain Solutions,


how to load all resource files(function libraries,object repositories etc) into tests without associating them?

1 Answers  


What criteria do you use when determining when to automate a test or leave it manual?

2 Answers  


what is framework and types of framework? Need of framework in automation? write folder strucuture of framework.

3 Answers   HealthAsyst,


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

0 Answers  


Categories