New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrowserType.connect websocket endpoint not working #396
Comments
Found the reason for connection issue. It is because I used the chrome devtools websocket endpoint instead of playwright websocket server endpoint . In node js, there is an api to start the server and get the websocket endpoint , is there any available in java. From the docs const { chromium } = require('playwright'); // Or 'webkit' or 'firefox'.
(async () => {
const browserServer = await chromium.launchServer();
const wsEndpoint = browserServer.wsEndpoint();
// Use web socket endpoint later to establish a connection.
const browser = await chromium.connect({ wsEndpoint });
// Close browser instance.
await browserServer.close();
})(); My use case is to run chrome in container and connect using websocket endpoint |
There's As for |
Is there a plan for a Thanks. |
No, we were not planning to add |
Connecting to existing chrome not working. BrowserType.launch() works fine
Sample code to reproduce the issue:
getting the following exception
Also "Playwright.create()" always take time
The text was updated successfully, but these errors were encountered: