From 4cdc2d8abd4058e42758bd18a8f0e46deef97956 Mon Sep 17 00:00:00 2001 From: stefanseeger Date: Thu, 2 Oct 2025 09:00:29 +0200 Subject: [PATCH 1/3] Enhance doc class-browsercontext.md Signed-off-by: stefanseeger --- docs/src/api/class-browsercontext.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index 97c9303225d13..b8d67fb2326aa 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -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 `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 `domain` and `path` are required. Optional. + - `path` ?<[string]> Either `url` or `domain` and `path` are required. Optional. - `expires` ?<[float]> Unix time in seconds. Optional. - `httpOnly` ?<[boolean]> Optional. - `secure` ?<[boolean]> Optional. From f29399df701d3ca93ed6e985593acdca88f6a5bf Mon Sep 17 00:00:00 2001 From: stefanseeger Date: Mon, 6 Oct 2025 10:17:20 +0200 Subject: [PATCH 2/3] Update docs/src/api/class-browsercontext.md Co-authored-by: Dmitry Gozman Signed-off-by: stefanseeger --- docs/src/api/class-browsercontext.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md index b8d67fb2326aa..c49bef583269a 100644 --- a/docs/src/api/class-browsercontext.md +++ b/docs/src/api/class-browsercontext.md @@ -327,9 +327,9 @@ await context.AddCookiesAsync(new[] { cookie1, cookie2 }); - `cookies` <[Array]<[Object]>> - `name` <[string]> - `value` <[string]> - - `url` ?<[string]> Either `url` or `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 `domain` and `path` are required. Optional. - - `path` ?<[string]> Either `url` or `domain` and `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. From 0b38f46febf0134b5dd704cd110cf457be3b1abf Mon Sep 17 00:00:00 2001 From: stefanseeger Date: Mon, 6 Oct 2025 08:21:18 +0000 Subject: [PATCH 3/3] docs: run build --- packages/playwright-client/types/types.d.ts | 8 ++++---- packages/playwright-core/types/types.d.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/playwright-client/types/types.d.ts b/packages/playwright-client/types/types.d.ts index d4e4f52c74f85..49e9b97efa5fc 100644 --- a/packages/playwright-client/types/types.d.ts +++ b/packages/playwright-client/types/types.d.ts @@ -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; diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index d4e4f52c74f85..49e9b97efa5fc 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -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;