How to Display last item of a Combobox by using QTP?
Answer Posted / bhargavi
For web application it is not Combobox as mentioned above.
In windows application we will have combo box and here is the code for retrieving last item in combo box:
This example is explained using Flight application(Sample application given in QTP)
reqItem= Window("Flight Reservation").WinComboBox("Fly From:").GetItemsCount
msgbox Window("Flight Reservation").WinComboBox("Fly From:").GetItem(reqItem-1)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
when will you do debug your script? and explain that process?
can any one say that where we can download the QTP trail version ??????????
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
Limitations in QTP?
How do you check ticket cost and ticket number in flight application?
How to handle Java tree in QTP?
www.icici.com after this home page wll came, in this page what r the items we r going to test for manual and what the element we r test for QTP... explian clearly with example
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
Explain object spy in qtp.
This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10
What is the default add-ins in qtp?
what is stepin & stepout?
WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT
How to build scripts that access data from external sources?
What is the difference between qtp and selenium?