Skip to content

Commit 718e40a

Browse files
committed
Update the Stealthy Playwright ReadMe
1 parent 00c810a commit 718e40a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

examples/cdp_mode/playwright/ReadMe.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<h2><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32"></a> Stealthy Playwright Mode 🎭</h2>
44

5-
🎭 <b translate="no">Stealthy Playwright Mode</b> enables <b translate="no">[Playwright](https://github.com/microsoft/playwright-python)</b> to attach to a stealthy **[SeleniumBase CDP Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md)** browser session. This lets <span translate="no">Playwright</span> bypass bot-detection while allowing APIs of both frameworks to work in tandem. Under the hood, Playwright calls <code><b>connect_over_cdp()</b></code> via the remote-debugging URL.
5+
🎭 <b translate="no">Stealthy Playwright Mode</b> is a subset of **[SeleniumBase CDP Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/ReadMe.md)** where <b translate="no">[Playwright](https://github.com/microsoft/playwright-python)</b> attaches to a stealthy browser session via the remote-debugging URL. This lets <span translate="no">Playwright</span> bypass bot-detection while allowing APIs of both frameworks to work in tandem. Under the hood, Playwright calls <code><b>connect_over_cdp()</b></code> to achieve this stealth.
66

77
--------
88

@@ -19,11 +19,14 @@ To use **Stealthy Playwright Mode**, simply install the necessary Python package
1919
pip install seleniumbase playwright
2020
```
2121

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.
22+
> **Note:** Just as standard Playwright can use `channel="chrome"` to bypass internal binary downloads, Stealthy Playwright Mode achieves the same by attaching to the system Chrome browser launched by SeleniumBase. This lets you skip the large `playwright install` step entirely.
2323
2424
## 💻 Usage
2525

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".
26+
**Stealthy Playwright Mode** comes in three different formats:
27+
* `sb_cdp` "sync" format
28+
* `SB()` "nested sync" format
29+
* `cdp_driver` "async" format
2730

2831
### 1. The lightweight "sync" format (`sb_cdp`)
2932

0 commit comments

Comments
 (0)