Skip to content

[Feature]: only download browsers that are used聽#1989

Description

馃殌 Feature Request

The current experience is:

  • Playwright.create() calls Driver.ensureDriverInstalled, which installs all browsers

The net effect is that you are downloading all browsers including the ones you don't need, which is not only a waste of time/space/bandwidth, but also will crash if for instance "Playwright does not support chromium on ubuntu20.04-x64" (my exact case). But I don't use Chromium.

Instead, the current experience should be:

  • Playwright.firefox() checks for / installs Firefox

Example

No response

Motivation

I know there is a workaround, which is to install the browsers manually via mvn, and use PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD. But that's what it is: a workaround, which is a bit tedious, and should not be necessary. The experience should be great by default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions