Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a function to read the items from Combobox of Flight
Reservation
application and save in excel.

Answers were Sorted based on User's Feedback



write a function to read the items from Combobox of Flight Reservation application and save in ex..

Answer / kishan

allItems=Browser().page().webComboBox().getROProperty("all
items")

arr=split(allItems," ")

'create excel appl object
set xlo=CreateObject("Excel.Application")\
xlo.visible=True

set wbo=xlo.Workbooks.open("D:\QTP\TestData\abcdef.xls")
set wso=xlo.worksheets("Sheet1")

for i=0 to ubound(arr)

j=i+1
wso.cells(j,1)=arr(i)

next

Is This Answer Correct ?    5 Yes 0 No

write a function to read the items from Combobox of Flight Reservation application and save in ex..

Answer / 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

write a function to read the items from Combobox of Flight Reservation application and save in ex..

Answer / pushkar1206

a=browser("vtiger CRM - Commercial").Page("vtiger CRM - Commercial").WebList("login_theme").GetROProperty("all items")
b=split(a,";")
Set obj=createobject("excel.application")
Set obj2=obj.Workbooks.Open("C:UserspushkarDesktopBook1.xls")
Set obj3=obj2.Worksheets("Sheet1")
For i=0 to ubound(b)
j=i+1
obj3.cells(j,1)=b(i)
obj2.Save
Next

Is This Answer Correct ?    0 Yes 0 No

write a function to read the items from Combobox of Flight Reservation application and save in ex..

Answer / pushkar1206

It is very important too save workbook else sheet will be empty.

Is This Answer Correct ?    0 Yes 0 No

write a function to read the items from Combobox of Flight Reservation application and save in ex..

Answer / gourav

can anyone plz tell me the answer to this question?

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

difference between recording methods and recording modes in QTP

5 Answers   Ordain Solutions,


How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me

5 Answers   Livetek, Virtusa,


How do client side image and server side image work?

0 Answers  


We have an action attached with the library file in QTP. When I will click on run button,which file is going to be executed first a)Action b)Library

1 Answers  


Hi im new in Testing..can any one plz re-write this code SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe","","C:\Program Files\Mozilla Firefox","open" ----using for loop(for i=0;i<=10;i++ )

2 Answers  


What is keyword view in qtp?

0 Answers  


When a requirement is given to u to automate , What is ur basic approach ?

4 Answers  


Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance

1 Answers  


How u will do versioning in QTP?

0 Answers   NIIT,


What is the difference between a Function and Action in QTP?

0 Answers   Wells Fargo,


how to parameterizing values from an excel sheet in Quick test professional?

1 Answers  


in my application,validation message has in japanise language.how to validate this message is appears properly or not

0 Answers  


Categories