Forum Discussion

Mr_Bro's avatar
Mr_Bro
Frequent Contributor
5 years ago

get the Downloaded file format

Hi Team,

 

my requirment is to select one dropdown value from dropwon list(Excel,Csv,PDF,XML)

and it will download the file in the selected format
i want to check the downloaded file format using script,

im using Chrome browser for the same and it doesnot ask for any location were the file needs to be saved.

please guide me how to achieve the same.

 

  • Hi,

    You need to go to your browser settings and check under the downloads section as to where your default location is for downloaded files. Once you know the location you can you use aqFileSystem.FindFiles(path,filename) to look for your downloaded file. In your filename you can check the extension type so if you've downloaded an excel file you can have your filename parameter as "myfile.xlsx".

    Hope this helps ^.^

    • Mr_Bro's avatar
      Mr_Bro
      Frequent Contributor

      actually i want to run the scripts in CBT,
      in suck case it will fail.