-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the example used in the readme does not work #379
Comments
Hello @frankgreco, But I get the list of the links correctly. Did you get them? |
If I try to dump the page contents, I get a different error. 'use strict'
import puppeteer from 'puppeteer-core';
const browser = await puppeteer.connect({
browserWSEndpoint: "ws://127.0.0.1:9222",
});
const context = await browser.createBrowserContext();
const page = await context.newPage();
await page.goto('https://wikipedia.com/');
console.log(await page.content());
await page.close();
await context.close();
|
'use strict'; import puppeteer from 'puppeteer-core'; async function main() {
} catch (error) { main(); |
Yes I'm also stuck with the same error: const context = await browser.createBrowserContext(); TypeError: browser.createBrowserContext is not a function At least, please provide a minimal example that works. Since this repo lacks documentation. |
The hello world example does not work. In fact, no website I've tried works. It's usually always panics.
The text was updated successfully, but these errors were encountered: