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

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

Hello Alex,

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

((Javascript_Executor) driver).execute_Script("lambda-file-content=file-name.file_format");