Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a browser cookie.

use Page.cookies() to obtain cookies for the current page: let cookies = await page.cookies();

Hierarchy

  • Cookie

Index

Properties

domain

domain: string

The cookie domain.

expires

expires: number

The cookie Unix expiration time in seconds.

httpOnly

httpOnly: boolean

The cookie http only flag.

name

name: string

The cookie name.

path

path: string

The cookie path.

sameSite

sameSite: SameSiteSetting

The cookie same site definition.

secure

secure: boolean

The cookie secure flag.

session

session: boolean

The session cookie flag.

size

size: number

The cookie size

value

value: string

The cookie value.