How to verify if a file is downloaded on LambdaTest machines with Java-TestNG?

How to verify if a file is downloaded on LambdaTest machines with Java-TestNG?

Hey Richard,

You can add this syntax below to check whether the downloaded file exists in the test machine:

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