|
When I try to run with Docker, Playwright complains that there's no XServer running and I should set Playwright to Is there an official or straightforward way to run this headless inside Docker? Thank you, |
Replies: 3 comments 2 replies
|
I found the answer: Add Playwright and its dependencies to the docker file: For some reason, running and, in the creator object inside your creator = Create(session=your_session_name, browser='firefox', headless=True)For some reason I couldn't make it headless with Chrome, and someone else had already complained about that: #15 (comment) I didn't know to insert the QR Code in headless mode, so I ran once without Docker with |
Sounds awesome! Is there a native argument of some function that prints the qrcode data? How would I got about to do that? Thank you! |
|
Nevermind, found it! The solution is in |
I found the answer:
Add Playwright and its dependencies to the docker file:
For some reason, running
playwright install --with-depsonly, without the rest, gives me a buggy performance. Not all messages are sent. But with theapt-getfor the dependencies, it runs fine.and, in the crea…