Use with Puppeteer
Setup
obscura serve --port 9222
npm install puppeteer-coreConnect
const puppeteer = require('puppeteer-core');
const browser = await puppeteer.connect({
browserWSEndpoint: 'ws://127.0.0.1:9222',
});Navigate
const page = await browser.newPage();
await page.goto('https://example.com');
await page.goto('https://example.com', { waitUntil: 'load' });
await page.goto('https://example.com', { waitUntil: 'networkidle0', timeout: 60000 });Evaluate
Interact
Cookies
Intercept requests
Expose a Node callback
Multiple pages
Screenshots, scrolling, and PDF
Screencasting
Disconnect
Current limits
Last updated
Was this helpful?

