automa icon indicating copy to clipboard operation
automa copied to clipboard

Subject: Issue with Automa Screenshot Action

Open musafali1 opened this issue 1 year ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Browser: [e.g. Google Chrome]
  • Extension Version: [e.g. v0.12.0]

Additional context Add any other context about the problem here.

Hello,

I’m facing an issue with the screenshot action in Automa. My goal is to capture screenshots and store their URLs in a Google Sheet. However, I’ve encountered a problem where the generated screenshot URLs are extremely long, often exceeding 10,000 characters. While I can store these URLs in a variable or table, when I attempt to insert them into the Google Sheet, I receive an error, likely due to the length of the URL.

Additionally, I want to send these screenshots via Gmail to my boss, but the lengthy URLs prevent me from doing so, triggering an error. Storing the screenshots locally on my computer isn’t ideal, as I need to export them.

Is there any way to shorten the screenshot URLs to around 1,500 characters or another solution that would allow me to successfully store them in Google Sheets and send them via email without encountering errors? Your assistance in resolving this issue would be greatly appreciated.

Thank you for your help!

Best regards,

Musaf ALI

musafali1 avatar Aug 25 '24 21:08 musafali1

Actually, those aren't URLs but rather Base64 strings representing the image file. The length of a Base64 string is based on the size of the image file, so if it's a full-page screenshot, it will almost always exceed the maximum character limit. Also, Google Sheets does not natively support uploading image files directly.

If your goal is to upload and share the image file, I'd recommend uploading it to Google Drive. You can use the Google Drive block to upload it directly from your local computer.

Here’s how you can do it:

  1. Take Screenshot Block: Assign a file name to the screenshot.
  2. Set Downloads Location in Chrome: Go to Chrome settings, navigate to Downloads and specify a location for your downloads.
  3. Disable the 'Ask where to save each file before downloading' Option: Ensure this option is turned off so that files are saved automatically to the designated location.
  4. Google Drive Block: Use the Google Drive block to upload all files from the folder you set as the Downloads location.

jingbof avatar Sep 04 '24 01:09 jingbof