Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What will be the test script in QTP to test a ComboBox
where a user has to select more than two items????

Answers were Sorted based on User's Feedback



What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / raj kumar

This is the correct Answar

browser(":: IRCTC :: - Plan My").Page(":: IRCTC :: - Plan My").WebList("day").Select(#1)
browser(":: IRCTC :: - Plan My").Page(":: IRCTC :: - Plan My").WebList("day").ExtendSelect(#2)

Is This Answer Correct ?    18 Yes 6 No

What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / unknown

Hey Prasad,
I think you can't select more that one item in the
combobox, it may be list box or something else

Is This Answer Correct ?    5 Yes 3 No

What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / maheshbabu.t

Hi This Mahesh


I am sending the Descriptive Progarme see below

Function selectWebItem(webListName,ItemName,webItemIndexVal)
ClearDialogs()
strHandle = Window
("RegExpWndClass:=IEFrame","index:=0" ).GetROProperty
("hWnd")
Set gobjBrowser = Browser("hWnd:=" & strHandle)

Set gobjPage = gobjBrowser.Page("index:=1")
gobjPage.Sync
Set objDescription = Description.Create()
objDescription("Class Name").Value = "WebList"
objDescription("html tag").Value = "SELECT"
objDescription("name").Value = webListName


If gobjPage.WebList(objDescription).exist(0) Then
gobjPage.WebList(objDescription).select
ItemName
else
objDescription
("index").value=webItemIndexVal
If gobjPage.WebList(objDescription).exist
(0) Then
gobjPage.WebList
(objDescription).select ItemName
else
testPassCntr=testPassCntr+1

End if
End If
End Function

Is This Answer Correct ?    2 Yes 2 No

What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / anil

@ maheshbabu

If want to search an object based on the value from the
dropdown list? For ex: I've a item "one" in the dropdown
list, I want to see if one is existing in the dropdown
list, if yes then i want to perform some action, else say
one does not exist.
how to write code for this in qtp?

Is This Answer Correct ?    0 Yes 0 No

What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / ramp@oracle

systemutil.Run"path"
Dialog("Title:=Login").WinEdit("AttachedText:=Agent Name:").Set "chaitanya"
Dialog ("Title:=Login").WinEdit("AttachedText:=Password:").Set "mercury"
Dialog ("Title:=Login").winbutton("Text:=OK").Click
Window ("Title:=Flight Reservation").close

Is This Answer Correct ?    0 Yes 0 No

What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / madhavi

If i am correct, then this is a special type of combobox
where a dropdown list appears after we enter a input, for
eg, after we enter des, then immediatly a drop down list
appears for this combox with all the options whose test has
des in them, we can selecet an option from this list just
like a drop down list and we can select one one option.
even i am looking for a qtp script which can do this
operation. :-(

Is This Answer Correct ?    2 Yes 3 No

What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / saravanaraja

we cant select more than one value in Combo Box.
Example: go and check in Ms-Word (Font Selection Combo Box)

Is This Answer Correct ?    0 Yes 2 No

What will be the test script in QTP to test a ComboBox where a user has to select more than two it..

Answer / xxxx

Look at it might be useful for you

Browser("XXXX").page("page1").WebEdit("editbox").set "dsgagfdsa"
value1=Browser("XXXX").page("page1").WebEdit("editbox").GetROProperty("Text")
Browser("XXXX").page("page1").webButton("Button1").click

Browser("XXXX").page("page2").WebList("List1").select value1

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More QTP Interview Questions

1...HOW MANY TYPES OF OBJECT REPOSITORY ARE THERE IN QTP? 2....WHAT ARE THE REPOSITORY FEATURES EXPLAN. 3...HOW TO CREATE A RECOVERY SCENARIO? WHAT DOES RECOVERY SCENARIO MANAGER DO? 4...OPEN A WORD FILE AND MODIFIED WITH SOME VALUE USING QTP? 5... HOW TO CREATE EXCEL FILE USING QTP? 6... HOW TO RETRIEVE A VALUE FROM WEB TABLE? 7... WHAT IS QC REQUIREMENT TAB DO ? HOW TO MAP THE REQUIREMENT? 8... HOW TO PASS A VALUE FROM EXCEL FILE TO SCRIPT? 9...WHAT IS THE USE OF SPLIT FUNCTION?

1 Answers   RBS,


How do you do batch testing in wr and is it possible to do in qtp, if so explain?

0 Answers  


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

0 Answers   Livetek,


What is the best institute in Ameerpet? If people think Ameerpet is the pride of hyd they need to go to Delhi/Gurgaon/noida you can find the difference.

3 Answers  


How to attach a file to TD?

0 Answers  


When The Low Level Recording is Used in QTP

17 Answers  


How u call functions in QTP Function to calculate the length of characters in a wor

2 Answers  


How to test background color and dynamic images during run time can you put the check point for moving objects?

0 Answers  


want to learn real time automation project(QTP)?

1 Answers  


What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.

4 Answers   NCR,


Could any one suggest web site links to learning VB Script for QTP purpose??

3 Answers  


what r advance features u had done in QTP?

3 Answers   HCL,


Categories