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

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

Hello Macy-davis,

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: