From 007a3db6ed6ff7bc4290fcec3da47abf0188125c Mon Sep 17 00:00:00 2001 From: feder-cr <85809106+feder-cr@users.noreply.github.com> Date: Thu, 2 Jul 2026 19:57:50 +0200 Subject: [PATCH] Add a custom Firefox binary example to the Playwright helper docs --- docs/playwright.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/playwright.md b/docs/playwright.md index 5810b9eaf..7dc93e107 100644 --- a/docs/playwright.md +++ b/docs/playwright.md @@ -63,6 +63,25 @@ Make sure `Playwright` helper is enabled in `codecept.conf.js` config: > Turn off the `show` option if you want to run test in headless mode. > If you don't specify the browser here, `chromium` will be used. Possible browsers are: `chromium`, `firefox` and `webkit` +To point `firefox` at a custom build instead of the bundled one, pass `executablePath` under the +`firefox` key: + +```js + helpers: { + Playwright: { + url: "http://localhost", + browser: 'firefox', + firefox: { + executablePath: '/path/to/firefox' + } + } + } +``` + +Useful with a build like [invisible_playwright](https://github.com/feder-cr/invisible_playwright), +patched at the source level for a realistic fingerprint, for sites that detect the default Chromium +path. + Playwright uses different strategies to detect if a page is loaded. In configuration use `waitForNavigation` option for that: When to consider navigation succeeded, defaults to `load`. Given an array of event strings, navigation is considered to be successful after all events have been fired. Events can be either: