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 |
what is the framework followed by ur company in qtp
how to retrieve data from the data table (from a particular cell)
• What type of testing questions will be asked for 2+ yrs exp people in interview?
What is the extension of the qtp local repository?
normally by going through the object properties in object spy we write descriptive programming(correct me if i am wrong). But how or from where can we get the object properties in the object spy?plzzzzzz do answer
How can we make a shared object repository in QTP 9?
3 Answers Kanbay, Ordain Solutions,
Will QTP gets installed on virtual PC.What is the maintenance number to be given
tell me the script for envirnment value parameeter with an example. which situation envirnment valu parameter is used
Hi, I am learning QTP. can someone please tell me a site from where i can learn QTP scripting Thanks in advance
How you automate test scripts
How do you move objects from local object repository to shared object repository???What are methods?
What type of VB script u had done in expert view?