3 ms·
Playwright can actually use your existing browser cookies if you connect it through Chrome's debugging protocol. Launch Chrome with the flag: --remote-debuggin
by aschobel 2y ago
Playwright can actually use your existing browser cookies if you connect it through Chrome's debugging protocol. Launch Chrome with the flag:
--remote-debugging-port=9222
Then connect via CDP in Playwright like this:
const browser = await chromium.connectOverCDP('http://localhost:9222'); http://localhost:9222');