Forum Discussion

MonicaTeotia's avatar
MonicaTeotia
Occasional Contributor
2 years ago

verifying if a file is downloaded

Hi Team, On click of download button an excel file is downloaded in my application. How can I verify whether the file has been downloaded?
  • rraghvani's avatar
    2 years ago

    Use double backslashes '\\'

    function FileExistsExample()
    {
        if (aqFileSystem.Exists("C:\\Temp\\Book1.xlsx")) {
            Log.Message("File exist");
        } else {
            Log.Message("File does not exist")
        }
    }

    You can change the default download folder location in your browser.