Skip to content
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

[BUG] browserType.connect() throws on executablePath errors #3935

Closed
Niek opened this issue Sep 21, 2020 · 3 comments
Closed

[BUG] browserType.connect() throws on executablePath errors #3935

Niek opened this issue Sep 21, 2020 · 3 comments

Comments

@Niek
Copy link

Niek commented Sep 21, 2020

Context:

  • Playwright Version: 1.4.1
  • Operating System: macOS 11 beta 7
  • Node.js version: 10.14
  • Browser: Chromium

Code Snippet

const { chromium } = require('playwright');
(async () => {
    const b = await chromium.connect({wsEndpoint: '...'});
})();

Describe the bug

Chromium is not currently supported with Playwright on macOS 11 beta 7. It (correctly) throws this error:

.../node_modules/playwright/lib/server/browserType.js:48
            throw new Error('Browser is not supported on current platform');

The bug is that this error is also thrown when using browserType.connect(). The file browserTypeDispatcher.js checks for executablePath, even if you're connecting to a remote websocket. It should only check on browserType.launch*()

@mxschmitt
Copy link
Member

Hi we don't yet support MacOS Big Sur: #2789

@Niek
Copy link
Author

Niek commented Sep 21, 2020

I am aware of that. It's perfectly fine to throw an error when trying to launch a browser instance on macOS Big Sur. However, the bug is that the same error is thrown when connecting to a remote browser - that doesn't make sense to me. The limitation is in the browser builds, not in de node code.

@mxschmitt
Copy link
Member

Gotcha, makes sense. Then it seems to be a bug and related to #3919 too.

aslushnikov pushed a commit to aslushnikov/playwright that referenced this issue Sep 21, 2020
Cherry-pick:
- PR microsoft#3943 SHA 0090cd943c8c724cb0fe8b02f4fd7f7e7ba837bd

References microsoft#3919 and microsoft#3935
aslushnikov added a commit that referenced this issue Sep 23, 2020
…3946)

Cherry-pick:
- PR #3943 SHA 0090cd943c8c724cb0fe8b02f4fd7f7e7ba837bd

References #3919 and #3935

Co-authored-by: Pavel Feldman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants