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
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
How do I get the QTP scripts result in xml format by using vb script function?
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.
What are the main differences of qtp and win runner?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
What are the automation metrice in your project?
how to create flat file datasubmission in qtp
In qtp, explain what is crypt object
What is a reusable action?
What is the synchronization point in qtp?
how to find that tools work well with your existing system?
How the exception handling can be done using quicktest professional (qtp)?
Explain the concept of object repository and how qtp recognises objects?
In qtp, explain what is qrs file?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?