PuppeteerToughCookieStore

Implements

  • Store

Constructors

Properties

synchronous: boolean = false

Current store driver works async only

Methods

  • Returns cookie for the specific domain and path

    Parameters

    • domain: string
    • path: string
    • key: string

    Returns Promise<undefined | Cookie>

  • Returns cookies for the specific domain and path

    Parameters

    • domain: string
    • Optionalpath: string
    • OptionalallowSpecialUseDomain: boolean

    Returns Promise<Cookie[]>

  • Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.

    If options.getAllCookiesUrls set will return cookies only for those specific urls

    Returns Promise<Cookie[]>

  • Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

    Parameters

    • cookie: Cookie

    Returns Promise<void>

  • Sets a cookies with the given cookies; may overwrite equivalent cookies if they exist.

    Parameters

    • cookies: Cookie[]

    Returns Promise<void>

  • Clears browser cookies.

    Returns Promise<void>

  • Deletes browser cookies with matching name, domain and path.

    Parameters

    • domain: string
    • path: string
    • key: string

    Returns Promise<void>

  • Deletes browser cookies with matching domain and path.

    Parameters

    • domain: string
    • path: string

    Returns Promise<void>

  • Updates a cookie; in reality almost an alias for .putCookies

    Parameters

    • oldCookie: Cookie
    • newCookie: Cookie

    Returns Promise<void>