puppeteer-extra icon indicating copy to clipboard operation
puppeteer-extra copied to clipboard

page.goto returns null for this website when using stealth plugin and waitUntil networkidle2

Open pg1671 opened this issue 4 years ago • 1 comments

This also happens for networkidel0 but not for a waitUntil of load or domcontentloaded.

website is g2.com.

Code to reproduce:

const puppeteer = require("puppeteer-extra");
const pluginStealth = require("puppeteer-extra-plugin-stealth");
puppeteer.use(pluginStealth());


let args = [
    '--no-sandbox',
    '--disable-setuid-sandbox',
    '--ignore-certificate-errors',
    '--disable-dev-shm-usage',
];

puppeteer.launch({ headless: true, args: args}).then(async browser => {
  const page = await browser.newPage();

  const page_width = 1920;
  const page_height = 1080;

  await page.setViewport({width: page_width, height: page_height});
  var goto_result = await page.goto('https://www.g2.com/products/xero/reviews', {waitUntil: "networkidle2"});
  console.log(goto_result);
  await browser.close();

Remove the use of the plugin and it returns data from goto.

pg1671 avatar Mar 06 '20 05:03 pg1671

I can confirm that this happens with the stealth plugin and without it works as expected.

brunogaspar avatar Jul 19 '20 09:07 brunogaspar