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: examples/cdp_mode/playwright/ReadMe.md
+33-28Lines changed: 33 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,21 +11,23 @@
11
11
12
12
--------
13
13
14
-
### 🎭 Getting started with <btranslate="no">Stealthy Playwright Mode</b>:
14
+
##🛠️ Installation
15
15
16
-
If **`playwright`** isn't already installed, then install it first:
16
+
To use **Stealthy Playwright Mode**, simply install the necessary Python packages:
17
17
18
18
```zsh
19
-
pip install playwright
19
+
pip install seleniumbase playwright
20
20
```
21
21
22
-
**Stealthy Playwright Mode** comes in 3 formats:
23
-
1.`sb_cdp` sync format
24
-
2.`SB()` nested sync format
25
-
3.`cdp_driver` async format
22
+
> **Note:** Just as standard Playwright can use `channel="chrome"` to bypass internal binary downloads, Stealthy Playwright Mode attaches to the system Chrome already managed and patched by SeleniumBase. This lets you skip the large `playwright install` step entirely.
26
23
24
+
## 💻 Usage
27
25
28
-
### 🎭 `sb_cdp` sync format (minimal boilerplate):
26
+
There are three primary ways to implement **Stealthy Playwright Mode**, depending on your project’s architecture and needs: `sb_cdp` sync, `SB()` nested sync, and `cdp_driver` async.
27
+
28
+
### 1. The lightweight "sync" format (`sb_cdp`)
29
+
30
+
Ideal for standalone scripts that primarily use Playwright but need SeleniumBase's stealth and CAPTCHA-solving power without the overhead of WebDriver.
0 commit comments