bridges: let the browser bridge use an installed browser
Add `bridges.browser.channel` and `bridges.browser.executable_path` so a host can point the bridge at an already-installed Chrome/Chromium (a Playwright channel such as `chrome`/`msedge`, or a specific binary) instead of Playwright's managed build. `executable_path` wins when both are set. This is the no-download escape hatch for hosts where the browser CDN is unreachable or unusable. - `BrowserDriver` carries `channel`/`executable_path` and passes them to `launch_persistent_context` when set, so the managed download is skipped. - `BrowserBridge` reads both from its config block; `config.example.json` documents them. - Verified live: launching an installed Chromium via `executable_path` with an empty browsers path drives a real page with no managed download.
This commit is contained in:
1 parent
e4961ef492
commit
3a5b90b1cb
6 files changed
+54
-7
No files matched your search
@@ -1543,7 +1543,10 @@ CLI, unit tests (24) + integration tests (2).
|
||||
forces `autoSelectFamily` + a dual-stack resolver that prefers IPv6 and hangs
|
||||
instead of falling back to IPv4), bootstrap falls back to
|
||||
`scripts/playwright-browsers.py`, which fetches the same pinned artifacts over
|
||||
IPv4 and lays them out where Playwright expects. Playwright's sync API is
|
||||
IPv4 and lays them out where Playwright expects. `bridges.browser.channel` /
|
||||
`executable_path` instead launch an already-installed browser (a Playwright
|
||||
channel like `chrome`/`msedge`, or a specific binary) and skip the managed
|
||||
download entirely. Playwright's sync API is
|
||||
bound to its creating thread and the bridge serves each request on a new one,
|
||||
so the driver runs the **async** API on one dedicated event-loop thread and
|
||||
serializes whole operations behind an `asyncio.Lock`, submitting coroutines
|
||||
|
||||
Reference in new issue
Block a user