Use with Playwright
Setup
obscura serve --port 9222
npm install playwrightConnect
const { chromium } = require('playwright');
const browser = await chromium.connectOverCDP('ws://127.0.0.1:9222');
const context = browser.contexts()[0] || await browser.newContext();
const page = await context.newPage();Navigate
await page.goto('https://example.com');
await page.goto('https://example.com', { waitUntil: 'load' });
await page.goto('https://example.com', { waitUntil: 'networkidle' });Evaluate
Interact
Locators
Cookies
Intercept requests
Multiple pages
Screenshots, scrolling, and PDF
Screencasting
Disconnect
Current limits
Last updated
Was this helpful?

