Network.getAllCookies
# Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.
RETURN OBJECT
cookies
array Cookie
Array of cookie objects.
(async() => {
const browser = await puppeteer.launch({});
const page = await browser.newPage();
await page.goto('https://stack.com', {waitUntil : 'networkidle2' });
// tried params like this as well
// {waitUntil: 'load', timeout: 0}
// {waitUntil: 'networkidle0', timeout: 0}
// {waitUntil: 'domContentLoaded', timeout: 0}
// Here we can get all of the cookies
console.log(await page._client.send('Network.getAllCookies'));
})();
Not returning all cookies - Any other function to get cookies set by third-party scripts in the site.?