How can i select multiple items from a WebList bOX USING QTP
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Difference between copy to action and call to action?
What r the features of QTP9.2,other than QTP8.0 What r the extre features of QTP9.2.
Explain process of smart Identification in QTP?
how can i replace any text from the qtp script with some anothere text
I want to clear the webedit field without using set"" in qtp script
pls tell me different type of automation frame works in QTP and which one need to select in client server application
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?
How you know that a test case is a regression test case
could any help me please, how to work on visual foxpro application using UFT
How many ways return more then one value from function?
explain keyword driven framework with banking domain?
Can we Script any test case with out having Object repository? or Using Object Repository is a must