Answers for "puppeteer block request javascript"

0

puppeteer block request javascript

await page.setRequestInterception(true);

    page.on('request', (req) => {
        if(req.resourceType() === 'image'){
            req.abort();
        }
        else {
            req.continue();
        }
    });
Posted by: Guest on January-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language