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 do you compare the structure of 2 tables in database and check whether they are similar using qtp.
What is contained in the object repository?
How can I change object description or check point values in qtp?
Which scripting language used by quicktest professional?
Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?
Is it possible to change the property value at runtime? How it is possible?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
How to write business scripts using object repository with different scenarios
How many tabs are available in debug viewer pane?
What is use of object spy?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
How can you identify the browser and its information using QTP script?
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
Differences between text and test area checkpoints?