06-27-2008, 11:23 PM
Hi,
I really appreciate and its great team work to bring this forum for all who is behind this hub.For me QTP is still exploratory and I have so much to learn and this being good source to learn and exchange knowledge.
This would be my first query in here that Iam trying to figure out :
In my QTP script,I have a runtime HTML window which opens a CSV file.I need to save this CSV file to local drive as "Xls" file and verify data.
I tried to use following code but not sure if Iam doing right thing :
or
or
Iam stuck at next time how to make QTP understand select "SAve As" and provide localpath to save file.
Please help me if somebody have ideas on this issue.
Thanks
Yamini
I really appreciate and its great team work to bring this forum for all who is behind this hub.For me QTP is still exploratory and I have so much to learn and this being good source to learn and exchange knowledge.
This would be my first query in here that Iam trying to figure out :
In my QTP script,I have a runtime HTML window which opens a CSV file.I need to save this CSV file to local drive as "Xls" file and verify data.
I tried to use following code but not sure if Iam doing right thing :
Code:
Set xlsObj = Window("").WinObject("")
xlsObj = activeworksheet.SaveAs("localDrivePath\ab.xls")
or
Code:
Window("").WinObject("").Type (micCtrlDwn + "F12" + micCtrlUp)
or
Code:
Browser("").WinToolbar("").ShowDropdown("&File")
Please help me if somebody have ideas on this issue.
Thanks
Yamini