watzon / marionette

Selenium alternative for Crystal. Browser manipulation without the Java overhead.

Home Page:https://watzon.github.io/marionette/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export to PDF

jgillich opened this issue · comments

Puppeteer has the ability to export a page to a PDF, and that feature was recently added to Firefox as well.

Is it possible to support this in Marionette? As far as I can tell, the WebDriver protocol does not support this feature.

dealing with event based IO like WebSockets in Crystal is a pain right now

Can you tell me more about that? I might actually build this.

So there's two libraries you might look at right now. I considered doing this again, but I've been working on other things. The first is playwright which is a newer project by Microsoft that's supposed to be "the new puppeteer". And there's puppeteer itself which is a Google project. I'd focus on replicating the functionality of playwright if I were you. Google also has decent API documentation for the Devtools Protocol.

Thank you, I will check it out. I think this can be closed.