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
<h3align="center">Stealthy automation that passes every bot detection test.</h3>
18
-
19
-
<tablealign="center"><tr><td>
20
-
<b>Verified using multiple different Chromium browsers:<br />Chrome, Chrome-for-Testing, Chromium, Edge, Brave.</b>
21
-
</td></tr></table>
22
-
15
+
<h3align="center">Stealthy Chromium Automation and E2E Testing.</h3>
23
16
24
17
<palign="center">
25
18
<ahref="#python_installation">🚀 Start</a> |
@@ -59,9 +52,11 @@
59
52
60
53
🐙 <atranslate="no"href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md"><b>CDP Mode</b></a> bypasses bot-detection and handles CAPTCHAs by driving the browser directly through the <ahref="https://chromedevtools.github.io/devtools-protocol/"translate="no">Chrome DevTools Protocol</a>. Includes <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/playwright/ReadMe.md"><b><spantranslate="no">Stealthy Playwright Mode</span></b></a>, which extends these advanced anti-detection patches to Playwright scripts.
61
54
62
-
📚 The [SeleniumBase/examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples) folder includes over 100 ready-to-run examples. Examples that start with `test_` or end with `_test.py`/`_tests.py` are specifically designed to run with `pytest`. Other examples run directly with raw `python` (those files generally start with `raw_` to avoid confusion).
55
+
📚 The [SeleniumBase/examples/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples) folder includes over 100 ready-to-run examples of E2E testing. Examples that start with `test_` or end with `_test.py`/`_tests.py` are specifically designed to run with `pytest`. Other examples run directly with raw `python` (those files generally start with `raw_` to avoid confusion).
56
+
57
+
🥷 Stealthy CDP Mode examples are located in [./examples/cdp_mode/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/cdp_mode).
63
58
64
-
🥷 Stealthy examples are located in [SeleniumBase/examples/cdp_mode/](https://github.com/seleniumbase/SeleniumBase/tree/master/examples/cdp_mode).
59
+
🎭 Stealthy Playwright examples are located in [./examples/cdp_mode/playwright](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/playwright/).
📝 <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/playwright/raw_browserscan_sync.py">This</a> also works as a drop-in replacement for Playwright (making it stealthy):
86
+
📝 <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/playwright/raw_browserscan_sync.py">This example</a> demonstrates the drop-in patch that makes Playwright stealthy:
92
87
93
88
```python
94
89
from playwright.sync_api import sync_playwright
@@ -109,7 +104,7 @@ with sync_playwright() as p:
109
104
110
105
--------
111
106
112
-
For choosing which Chromium browser to use, you can set command-line options:
107
+
💡 You can set which Chromium browser to use via command-line options:
113
108
114
109
```zsh
115
110
python SCRIPT.py --use-chromium # Use the unbranded Chromium browser
@@ -118,7 +113,13 @@ python SCRIPT.py --edge # Use Microsoft Edge
118
113
python SCRIPT.py --brave # Use Brave browser
119
114
```
120
115
121
-
(Google Chrome is the default browser if not specified.)
116
+
Google Chrome is the default browser if not specified. Only unbranded Chromium and Chrome-for-Testing are installed automatically if not already installed.
117
+
118
+
You can also set the browser via method args, eg: `cft=True`, `use_chromium=True`, `browser="edge"`, `browser="brave"`, etc. Eg:
0 commit comments