write a function to read the items from Combobox of Flight
Reservation
application and save in excel.
Answer Posted / lavanya
This too works....
r=1
Function Fly_from()
Window("Flight Reservation").Activate
Window("Flight Reservation").WinComboBox("Fly From:").Drag 10,10
List =Window("Flight Reservation").WinComboBox("Fly From:").GetRoProperty("all items")
Cnt=Window("Flight Reservation").WinComboBox("Fly From:").GetItemsCount
msgBox List
msgBox Cnt
For i=0 To Cnt-1
Wso.cells(r,1).value=Window("Flight Reservation").WinComboBox("Fly From:").GetItem(i)
r=r+1
Next
End Function
Set odesc=CreateObject("excel.application")
odesc.visible=True
odesc.workbooks.open "path of excel file to store the list items"
Set Wso=odesc.worksheets("Sheet1")
call Fly_from()
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
explain abt dyanamic changing object with example?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
Explain building blocks of the bpt framework ?
Explain data driven framework?
What is the difference between analog and low level recording?
In qtp, how you can get the last character from a string?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
What are the different properties of an web object
How many lines of code in each script of QTP?
how to acess a test in RSA?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com
Name the properties you would use for identifying a browser and page when using descriptive programming?
how do i know how to use tools