Usage: mix playwright.install [ARGS...] (browsers and flags, in any order)
Installs the driver, then runs its playwright install with the args, as
npx playwright install would (none: its default browsers), e.g.
mix playwright.install chromium firefox --with-deps. Two flags, in any position, are the
task's own:
--no-browsers- installs only the driver (nothing with:executable), for a browser launched with:executable_pathor:channel. It takes no other args but--force.--force- reinstalls the driver (none with:executable), and is forwarded, so it reinstalls the browsers too. To reinstall only a browser, runmix playwright.cli install --force <browser>.
Every other arg is forwarded in order.
The task doesn't see the options of Playwright.Supervisor; it reads their defaults,
config :playwright, :driver (see Playwright.Driver). It doesn't compile the project, so it
sees config/config.exs and the files it imports, not config/runtime.exs:
:cache_dir- where the driver is installed.:executable- the CLI that installs the browsers. Nothing is downloaded.:node- the Node binary that runs the driver and installs the browsers. Onlyplaywright-coreis downloaded.
HTTPS_PROXY (else https_proxy) sets the proxy for the driver download.
The Playwright CLI reads its own: PLAYWRIGHT_BROWSERS_PATH (where browsers go),
PLAYWRIGHT_DOWNLOAD_HOST, HTTPS_PROXY, ...