puppeteer-extra
puppeteer-extra copied to clipboard
page.goto returns null for this website when using stealth plugin and waitUntil networkidle2
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.
I can confirm that this happens with the stealth plugin and without it works as expected.