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
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
What are the Application Functions available in QTP?
Why is action split used by qtp?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
Difference between test object and run time object?
How to customize checkpoints with parameters?
Tell me about qtp?
Explain the check points in quicktest professional?
How many types of recording modes in the qtp?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
What is object repository in qtp?
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com