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
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Count the number of radio buttons and randomly select one.
When I start recording any web application (either Mozilla or IE) QTP recognizes window instead of browser and also it does not show all the hierarchy tree of that particular web page. 1. Window("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") 2. As everybody knows it should be browser("Mozilla Firefox").Check CheckPoint("Mozilla Firefox") I am using the windows vista, do you think it may be a problem of my settings in QTP or problem of my installation. Your kind responses will be appreciated. Thanks in advance. Satya
where the object repository is located?how to choose the object repository as shared or action object repositories?
Synchronization methods?
What is the XML file architecture ?
How you can find the absolute value of the number in qtp?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
can any one give me the doccument how to test aproject developed in java language in qtp can here can we use the general vb scripting or we have to use java script here if we have to ese the java script here can any one send me the manual for it means how to write descriptive programming for it thanks in advance
In QTP how to interact tool and application build?
distinguish between old version and new version QTP features.
wt is the difference between global and action excel database in qtp?for example one action is calling another action the second action is using action excell sheet?if it is using global sheet what makes the difference?
how u will evaluate the tool for test automation?