How to download a file from LambdaTest to my local machine in SpecFlow?

How can I download a file from LambdaTest to my local machine in SpecFlow?

Hello Alex,

You can use the syntax below to download file content using base64 encoding in SpecFlow:

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