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

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

Hi Dipen,

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

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