Skip to content

Commit eee0d95

Browse files
docs: Enhance docs/src/api/class-browsercontext.md (#37680)
Signed-off-by: stefanseeger <seega@gmx.com> Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
1 parent 2c95eb1 commit eee0d95

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

docs/src/api/class-browsercontext.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ await context.AddCookiesAsync(new[] { cookie1, cookie2 });
327327
- `cookies` <[Array]<[Object]>>
328328
- `name` <[string]>
329329
- `value` <[string]>
330-
- `url` ?<[string]> Either url or domain / path are required. Optional.
331-
- `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.
332-
- `path` ?<[string]> Either url or domain / path are required Optional.
330+
- `url` ?<[string]> Either `url` or both `domain` and `path` are required. Optional.
331+
- `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.
332+
- `path` ?<[string]> Either `url` or both `domain` and `path` are required. Optional.
333333
- `expires` ?<[float]> Unix time in seconds. Optional.
334334
- `httpOnly` ?<[boolean]> Optional.
335335
- `secure` ?<[boolean]> Optional.

packages/playwright-client/types/types.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8802,18 +8802,18 @@ export interface BrowserContext {
88028802
value: string;
88038803

88048804
/**
8805-
* Either url or domain / path are required. Optional.
8805+
* Either `url` or both `domain` and `path` are required. Optional.
88068806
*/
88078807
url?: string;
88088808

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

88158815
/**
8816-
* Either url or domain / path are required Optional.
8816+
* Either `url` or both `domain` and `path` are required. Optional.
88178817
*/
88188818
path?: string;
88198819

packages/playwright-core/types/types.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8802,18 +8802,18 @@ export interface BrowserContext {
88028802
value: string;
88038803

88048804
/**
8805-
* Either url or domain / path are required. Optional.
8805+
* Either `url` or both `domain` and `path` are required. Optional.
88068806
*/
88078807
url?: string;
88088808

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

88158815
/**
8816-
* Either url or domain / path are required Optional.
8816+
* Either `url` or both `domain` and `path` are required. Optional.
88178817
*/
88188818
path?: string;
88198819

0 commit comments

Comments
 (0)