Replies: 1 comment 1 reply
-
Simply add a const htmlContent = document.documentElement.outerHTML;
const blob = new Blob([htmlContent], { type: 'text/html' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'test.html';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to "simply" save the current browser html page as e.g. test.html in the download folder. How can I do this with Automa? I tried "Export data" and "Save assets" but both have no option to save the current page as html. Thanks for helping how to achieve my goal.
Beta Was this translation helpful? Give feedback.
All reactions