Apify Discord Mirror

Updated 5 months ago

extract cookies in playwright

At a glance

The community member is asking how to extract cookies in Playwright, as they were able to do in Puppeteer using page.cookies(page.url()). A comment suggests that the community member can achieve the same thing in Playwright by using await browserContext.cookies([urls]). However, there is no explicitly marked answer in the comments.

Hello,
In puppeteer in order to extract cookies I was doing :
Plain Text
cookiesStore = await page.cookies(page.url());

how can I achieve the same thing in Playwright ? Can't find anything in docs
A
1 comment
await browserContext.cookies([urls])
Add a reply
Sign up and join the conversation on Discord