crawlee icon indicating copy to clipboard operation
crawlee copied to clipboard

Difference between cookies in Puppeteer and Playwright

Open mnmkng opened this issue 5 years ago • 0 comments

In Puppeteer page.cookies() returns cookies for the current URL.

In Playwright, it returns ALL cookies.

I assume this is because while Puppeteer runs in the same-context by default, so cookies are reused, Playwright runs all pages in separate contexts by default so the cookies are NOT reused and need to be manually injected into the new contexts. We need to investigate the implications.

mnmkng avatar Jan 10 '21 17:01 mnmkng