[Feature] Playwright.connect() for remote connection
See original GitHub issueCurrent API allows to connect to Playwright server remotely by means of browserType.launchServer()
and browserType.connect()
. This requires launching local instance of playwright first and then establishing connections to each of the browsers individually. This can be replaced with a single client->server connection when creating Playwright client (e.g. new Playwright(<websocket address>)
. Among other things this approach doesn’t require launching Playwright driver on the client side, so language bindings wouldn’t need to bundle it in such cases.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:34
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Playwright Remote Testing - Testable
You can use the Testable platform as a remote browser grid for Playwright tests. Each Playwright session will run on a Testable test...
Read more >Playwright: Launching Cross-Browser Automation to the Stars
If you wish to start Playwright test working with remote browser, you have to explicitly configure this test to connect to remote web-socket ......
Read more >How To Run Your First Playwright Test On Cloud | LambdaTest
This Playwright tutorial will look at writing and running your first Playwright test on a cloud grid like LambdaTest.
Read more >Playwright Tutorial: Getting Started With Playwright Framework
It's easy to set up, feature-packed, and one of the fastest, most reliable frameworks I've worked with. I'm going to guide you through...
Read more >playwright - chore: simplify remote connection protocol (#6164)
This way, any remote connection gets a Playwright object. This also starts reusing ... -37,7 +38,7 @@ export function printProtocol() {. console.log(fs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
@pavelfeldman at least there should be some way to connect to remote web socket. Otherwise you limit Playwright to local test execution only.
Another use case would be to run Playwright browser instances on a remote server and run the clients as light weight docker container e.g. alpine linux to run the tests without using driver locally.