05-29-2008, 07:41 AM
Hi All,
I am facing an issue while recording a script in QTP. My script is as follows:
So basically, u enter a value in the Webfile element and perform a click operation on the upload button to upload the excel file.
It works fine manually , but when I run this code the application throws an error saying
FILE FORMAT ERROR
Your File is not Valid Format
What could be wroung? SInce it is fine manually, it is something to do with the way QTP is handling this..Please let me know what you all think..
Thanks,
Lakshmi
I am facing an issue while recording a script in QTP. My script is as follows:
Code:
'Browser(" ").Page(" ").Frame("ControlContainer").WebFile(" ").Set "D:\Book3.xls"
Browser( ). Page( ). Frame( ).WebButton( ). Click
So basically, u enter a value in the Webfile element and perform a click operation on the upload button to upload the excel file.
It works fine manually , but when I run this code the application throws an error saying
FILE FORMAT ERROR
Your File is not Valid Format
What could be wroung? SInce it is fine manually, it is something to do with the way QTP is handling this..Please let me know what you all think..
Thanks,
Lakshmi