Closed vyahello closed 1 year ago
The run-server
CLI command is not a command which should be publicly used, its hidden and only used internally. We recommend to use Node.js to launch a server, see here. This gives you also the option to pass extra CLI arguments and make it headful.
Closing as per above.
The
run-server
CLI command is not a command which should be publicly used, its hidden and only used internally. We recommend to use Node.js to launch a server, see here.
@mxschmitt ,
Could you give me an example of how to launch the server from a docker run
command?
Thank you very much!
We have some experimental support now see here: https://github.com/microsoft/playwright/issues/26482
Your question
Hey, I'm trying to launch playwright remote server in docker container with headful chromium browser.
By default, chromium browser is launched with headless: true option and according to docs it is managed in launch browser method. In my case, i'm connecting to the playwright server via websocket endpoint using connect method and as per docs there is no headless option to pass.
Here is my setup:
Start playwright server via playwright run-server CLI command in docker container
Connect to the playwright server via websocket endpoint
I can see chromium is started in docker container with --headless flag
I'm trying to figure out how to force playwright server to start chromium browser session without --headless flag. Can we somehow manage browser args (like
--start-maximized
etc.) while/after connecting to the playwright server via websocket?I've found global browser configuration, but not sure if we can use it with playwright run-server CLI command. Also i've checked running headed section and xvfb-run command. As a result, tried to use
xvfb-run playwright run-server
command with no luck, the websocket endpointws://127.0.0.1:3000
is unreachable.@aslushnikov @yury-s @pavelfeldman @mxschmitt Is there a way how we can start headed browser using playwright run-server CLI command?