Skip to content

Allow skipping Playwright browser installation - #27

Open
alansaless wants to merge 1 commit into
gosom:mainfrom
alansaless:fix/skip-playwright-browser-install
Open

alansaless wants to merge 1 commit into
gosom:mainfrom
alansaless:fix/skip-playwright-browser-install

Conversation

@alansaless

Copy link
Copy Markdown

Summary

  • add an opt-in SCRAPEMATE_SKIP_PLAYWRIGHT_BROWSER_INSTALL=1 switch
  • map it to playwright-go RunOptions.SkipInstallBrowsers
  • preserve the current browser-install behavior by default
  • keep driver setup and playwright.Run validation unchanged

Why

Container images can preinstall the matching Playwright browser during image build. Re-downloading it when jshttp.New starts delays or blocks jobs in restricted runtime networks.

Tests

  • cover unset, empty, 0, arbitrary, and 1 values
  • verify Chromium and verbose options remain unchanged

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant