Closed ToddBradley closed 1 year ago
But since I provided no other command line arguments, the open command should have launched a headless browser, according to the documentation.
open
obviously opens a GUI browser, otherwise there isn't much you can do with it.
Context:
Code Snippet
Describe the bug
According to the documentation, "By default, Playwright launches browsers in headless mode." However, running Playwright via the Docker container tries to start Chrome, and - by default - fails.
The error message from the Playwright Team is clear about the problem. It says, "Looks like you launched a headed browser without having a XServer running." But since I provided no other command line arguments, the
open
command should have launched a headless browser, according to the documentation.Given the choice between changing the documentation and changing the software running in the container, I think you should fix the latter. If I'm running containerized Playwright, I probably want it to be headless.