Skip to main content
Stock Playwright issues CDP commands anti-bot systems detect (Runtime.enable and its bookkeeping hooks), and protected sites block the session. Use Patchright: same API, one import change.
If you’ve measured that your targets don’t care, stock Playwright works unchanged:
Install with npm install playwright or pip install playwright. Don’t run playwright install; the browser is Driver’s.

Everything else

Contexts, tabs, disconnecting versus stopping, reconnecting and timeouts work the same as with Patchright. See Connect over CDP.