feat: support system-installed browsers via channel and executable path - #243
Open
SantosVilanculos wants to merge 1 commit into
Open
feat: support system-installed browsers via channel and executable path#243SantosVilanculos wants to merge 1 commit into
SantosVilanculos wants to merge 1 commit into
Conversation
Add two new configuration options to launch system-installed browsers
instead of the bundled Playwright browsers:
- pest()->browser()->usingChannel('chrome') for branded browsers such as
Google Chrome or Microsoft Edge, which Playwright's server accepts out
of the box.
- pest()->browser()->usingExecutablePath('/usr/bin/firefox') for any
browser binary; the Playwright server is started with --unsafe so the
executablePath launch option is not filtered out.
Both options are forwarded as launch options in the Playwright client.
SantosVilanculos
marked this pull request as ready for review
August 3, 2026 12:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new
pest()->browser()configuration options to launch system-installed browsers instead of the Playwright-bundled browsers:Motivation
No downloaded Playwright browser bundles are needed — great for environments that already have Chrome/Firefox/Edge installed and want to avoid
npx playwright install.Implementation
Configuration::usingChannel(string)andConfiguration::usingExecutablePath(string)config methodsPlaywrightrun-serveris started with--unsafewhen anexecutablePathis set, because the server otherwise filters that launch option out (seefilterLaunchOptionsin playwright-core);channelis always acceptedTests
tests/Unit/Configuration/SystemBrowserConfigurationTest.phptests/Unit/Configuration+tests/Unit/Playwrightpass, Pint + arch passNotes
channelis the recommended approach for Chromium-based system browsers and requires no server flags.executablePathrequires the--unsafeserver mode (added conditionally).