Playwright and Selenium are great until you hit bot detection. Google OAuth, Cloudflare, and Vercel checkpoints all flag headless browsers. Here's how to control a real Chromium instance via CDP using Python and websockets.
Why Not Playwright?
Playwright launches a headless browser with automation flags. Even in headed mode with Xvfb, Google detects it.
The CDP Approach
Launch Chromium with remote debugging:






