How to verify if a file is downloaded on LambdaTest machines with JS-Protractor?

How to verify if a file is downloaded on LambdaTest machines with JS-Protractor?

Hi Ana-sousa,

To verify/check whether the downloaded file exists in the test machine, you can add the hooks below:

lambda-file-exists || ((JavascriptExecutor) driver).executeScript("lambda-file-exists=file-name.file_format");

For more details, you can refer here: