"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * 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`.
 */
async function getAllCookies() {
    const page = this.getPageHandle();
    return page.cookies();
}
exports.default = getAllCookies;
