puppeteer script only working headless false code example
Example: puppeteer headless false
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());