UNPKG

devtools

Version:

A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer

13 lines (12 loc) 531 B
/** * The Get All Cookies command returns all cookies associated with the address * of the current browsing context’s active document. * * @alias browser.getAllCookies * @see https://w3c.github.io/webdriver/#dfn-get-all-cookies * @return {Object[]} A list of serialized cookies. Each serialized cookie has a number of optional fields which may or may not be returned in addition to `name` and `value`. */ export default async function getAllCookies() { const page = this.getPageHandle(); return page.cookies(); }