Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/api/class-browsercontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ await context.AddCookiesAsync(new[] { cookie1, cookie2 });
- `cookies` <[Array]<[Object]>>
- `name` <[string]>
- `value` <[string]>
- `url` ?<[string]> Either url or domain / path are required. Optional.
- `domain` ?<[string]> For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either url or domain / path are required. Optional.
- `path` ?<[string]> Either url or domain / path are required Optional.
- `url` ?<[string]> Either `url` or both `domain` and `path` are required. Optional.
- `domain` ?<[string]> For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either `url` or both `domain` and `path` are required. Optional.
- `path` ?<[string]> Either `url` or both `domain` and `path` are required. Optional.
- `expires` ?<[float]> Unix time in seconds. Optional.
- `httpOnly` ?<[boolean]> Optional.
- `secure` ?<[boolean]> Optional.
Expand Down
8 changes: 4 additions & 4 deletions packages/playwright-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8802,18 +8802,18 @@ export interface BrowserContext {
value: string;

/**
* Either url or domain / path are required. Optional.
* Either `url` or both `domain` and `path` are required. Optional.
*/
url?: string;

/**
* For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either url
* or domain / path are required. Optional.
* For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either
* `url` or both `domain` and `path` are required. Optional.
*/
domain?: string;

/**
* Either url or domain / path are required Optional.
* Either `url` or both `domain` and `path` are required. Optional.
*/
path?: string;

Expand Down
8 changes: 4 additions & 4 deletions packages/playwright-core/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8802,18 +8802,18 @@ export interface BrowserContext {
value: string;

/**
* Either url or domain / path are required. Optional.
* Either `url` or both `domain` and `path` are required. Optional.
*/
url?: string;

/**
* For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either url
* or domain / path are required. Optional.
* For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either
* `url` or both `domain` and `path` are required. Optional.
*/
domain?: string;

/**
* Either url or domain / path are required Optional.
* Either `url` or both `domain` and `path` are required. Optional.
*/
path?: string;

Expand Down
Loading