Is it possible to copy weppage output?

Is it possible to select all text on a page and then save it to file? I don’t mean to download the webpage because the sourcecode is different from the DOM content. Or possibly to copy the text to clipboard?

Sure, it is possible to get the generated text.
You have to wait for the page to fully load and then get the generated text.

I found the response here.

Is there also a way to save the clipboard to txt file?

Sure… but it is easier to save when you get the text from the page instead of getting the clipboard content.

You can save to text to file using the downloads.download() API.