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

Explain the features of quick test pro(qtp)?

0 Answers  


How QTP identify the system time that's changes every seconds?

0 Answers  


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

0 Answers  


What are different types of frame works ?

3 Answers  


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

0 Answers  






I am automating a Java application. This application is developed using SWT. I am not able to get the GUI object. Even i tried with Java add-in. In tutorial it states SWT is not supported any idea. Anybody worked in such appln. My question is whether it is possible to record the GUI object of SWT appln. how it is possible.

1 Answers  


1. What is extense of Result file in QTP?

7 Answers  


what are the parameters you are considering for object identification?

1 Answers  


How To clear the AutoComplete?

1 Answers  


Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya

3 Answers  


What is the difference between client server application and web based application?

3 Answers   IBM,


1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 objects there in web page,how we will store that 100 objects repostries?

3 Answers   ANZ,


Categories