Subject: Issue with Automa Screenshot Action
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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
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:
Take ScreenshotBlock: Assign a file name to the screenshot.- Set Downloads Location in Chrome: Go to Chrome settings, navigate to
Downloadsand specify a location for your downloads. - 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.
Google DriveBlock: Use the Google Drive block to upload all files from the folder you set as the Downloads location.