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
what testplan contents and what test strategy contents,what is the diff b/w them
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
How many add-ins comes by default with quicktest professional?
How to create scenario selector
Through array we can execute the testcase how ? give me example
What is quicktest professional (qtp window?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
What is the file extension of the code file in qtp?
Explain the use of action split in qtp?
Explain how Selenium is different from UFT?
unique properties of button,edit box, radio button,check box?
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
what is the difference between data driver & data driven and driver script?
how can i call function (which has link with excell sheet at a remote location) within another function
What is the virtual object?