Uploading excel file through the script-error - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Uploading excel file through the script-error (/Thread-Uploading-excel-file-through-the-script-error) |
Uploading excel file through the script-error - LakshmiV - 05-29-2008 Hi All, 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" 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 |