question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Playwright.connect() for remote connection

See original GitHub issue

Current 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:closed
  • Created 3 years ago
  • Reactions:34
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
vania-poohcommented, Jan 17, 2021

@pavelfeldman at least there should be some way to connect to remote web socket. Otherwise you limit Playwright to local test execution only.

4reactions
kumaraditya303commented, May 19, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found