I'm having issues finding a way to copy text with Puppeteer.
In my research, I've found this post but, this wasn't what I was trying to do (copy text from input). What I am trying to do is copy text from a website. Then paste it into a Google Doc file. My main goal is to keep the formatting.
I have been able to get the HTML text with:
let html_content = await page.evaluate(el => el.innerHTML, await page.$('#sites-canvas-main-content > table > tbody > tr > td > div'));
This unfortunately does not keep the formatted text.
Is this even possible to do with Puppeteer?