📜  puppeteer headless false - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:59.530000             🧑  作者: Mango

代码示例1
const browser = await puppeteer.launch({headless: true});
  const page = await browser.newPage();
  await page.goto('localhost:3000', {
          networkIdleTimeout: 1000,
          waitUntil: 'networkidle',
          timeout: 3000000
        });
  console.log(page.url());