Skip to content

Commit 007a3db

Browse files
committed
Add a custom Firefox binary example to the Playwright helper docs
1 parent 7cb68de commit 007a3db

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

docs/playwright.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,25 @@ Make sure `Playwright` helper is enabled in `codecept.conf.js` config:
6363
> Turn off the `show` option if you want to run test in headless mode.
6464
> If you don't specify the browser here, `chromium` will be used. Possible browsers are: `chromium`, `firefox` and `webkit`
6565
66+
To point `firefox` at a custom build instead of the bundled one, pass `executablePath` under the
67+
`firefox` key:
68+
69+
```js
70+
helpers: {
71+
Playwright: {
72+
url: "http://localhost",
73+
browser: 'firefox',
74+
firefox: {
75+
executablePath: '/path/to/firefox'
76+
}
77+
}
78+
}
79+
```
80+
81+
Useful with a build like [invisible_playwright](https://github.com/feder-cr/invisible_playwright),
82+
patched at the source level for a realistic fingerprint, for sites that detect the default Chromium
83+
path.
84+
6685
Playwright uses different strategies to detect if a page is loaded. In configuration use `waitForNavigation` option for that:
6786

6887
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:

0 commit comments

Comments
 (0)