await page.setRequestInterception(true); page.on('request', (req) => { if(req.resourceType() === 'image'){ req.abort(); } else { req.continue(); } });