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 |
How to creating an output value using quicktest professional?
can u explain about QTP Frameworks? what are the framework types are available? and How to set or create frame work for a application? Explain briefly?(Also give me one example)
IF application is a Java-based application means 2 0r 3 tier application. How the script will be in QTP. pls kindly give some sample script.
In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.
Hi,i have 3 years of experience in manual and Automation qtp.present i am searching for job in automation qtp 2Yrs,How to Explain the interviwer Roles and Responsibilites.please help me.
We have opened three browser such as Facebook,Gmail,Amazon,I want to generate the script of Login of Amazon application, but while adding the object such as edit box(user id,password) in OR is not added.Could you please resolve my issue
What are the factors on which script execution time is dependent?
QTP -object reposistory spy tool is not able to spy the pop up message appearing in the application, so how is that i can handle such run time pop ups in QTP by code???
What are the challenges u faced in testing with crm domain? How u overcome with?
what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?
Can we directly automate testscripts accrdoing to requirements? WHY ?
Explain the features of quick test pro(qtp)?