PlaywrightCookie
Hierarchy
- Cookie
- PlaywrightCookie
Index
Constructors
Methods
Constructors
constructor
Parameters
context: BrowserContext
cookieName: string
Returns PlaywrightCookie
Methods
delete
Returns Promise<void>
name
Returns the name of this cookie.
Returns string
isPresent
Returns Promise<boolean>
value
Returns the value of a given cookie.
Returns Promise<string>
path
Returns the path of a given cookie, if any was set.
Returns Promise<string>
domain
Returns the domain of a given cookie, if any was set.
Returns Promise<string>
isHttpOnly
Checks if a given cookie is HTTP-only.
Learn more
Returns Promise<boolean>
isSecure
Checks if a given cookie is secure.
Learn more
Returns Promise<boolean>
expiry
Returns Promise<Timestamp>
Playwright-specific implementation of Cookie.