You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: help_docs/customizing_test_runs.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -449,6 +449,27 @@ Note that different options could lead to the same result. (Eg. If you have the
449
449
450
450
--------
451
451
452
+
<h3><imgsrc="https://seleniumbase.github.io/img/green_logo.png"title="SeleniumBase"width="32" /> Setting the binary location:</h3>
453
+
454
+
🔵 By default, SeleniumBase uses the browser binary detected on the System PATH.
455
+
456
+
🎛️ To change this default behavior, you can use:
457
+
458
+
```bash
459
+
pytest --binary-location=PATH
460
+
```
461
+
462
+
The `PATH` in `--binary-location=PATH` / `--bl=PATH` can be:
463
+
* A relative or exact path to the browser binary.
464
+
*`"cft"` as a special option for `Chrome for Testing`.
465
+
*`"chs"` as a special option for `Chrome-Headless-Shell`.
466
+
467
+
Before using the `"cft"` / `"chs"` options, call `sbase get cft` / `sbase get chs` in order to download the specified binaries into the `seleniumbase/drivers` folder. The default version is the latest stable version on https://googlechromelabs.github.io/chrome-for-testing/. You can change that by specifying the arg as a parameter. (Eg. `sbase get cft 131`, `sbase get chs 132`, etc.)
468
+
469
+
With the `SB()` and `Driver()` formats, the binary location is set via the `binary_location` parameter.
🎛️ An easy way to override [seleniumbase/config/settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) is by using a custom settings file.
0 commit comments