diff --git a/generated-structs.go b/generated-structs.go index 84279a9..e1ea1d4 100644 --- a/generated-structs.go +++ b/generated-structs.go @@ -811,10 +811,12 @@ type BrowserTypeLaunchOptions struct { // // [here]: https://peter.sh/experiments/chromium-command-line-switches/ Args []string `json:"args"` - // Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", - // "msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using - // [Google Chrome and Microsoft Edge]. + // Browser distribution channel. + // Use "chromium" to [opt in to new headless mode]. + // Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or + // "msedge-canary" to use branded [Google Chrome and Microsoft Edge]. // + // [opt in to new headless mode]: https://playwright.dev/docs/browsers#opt-in-to-new-headless-mode // [Google Chrome and Microsoft Edge]: https://playwright.dev/docs/browsers#google-chrome--microsoft-edge Channel *string `json:"channel"` // Enable Chromium sandboxing. Defaults to `false`. @@ -895,10 +897,12 @@ type BrowserTypeLaunchPersistentContextOptions struct { BaseURL *string `json:"baseURL"` // Toggles bypassing page's Content-Security-Policy. Defaults to `false`. BypassCSP *bool `json:"bypassCSP"` - // Browser distribution channel. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", - // "msedge", "msedge-beta", "msedge-dev", "msedge-canary". Read more about using - // [Google Chrome and Microsoft Edge]. + // Browser distribution channel. + // Use "chromium" to [opt in to new headless mode]. + // Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or + // "msedge-canary" to use branded [Google Chrome and Microsoft Edge]. // + // [opt in to new headless mode]: https://playwright.dev/docs/browsers#opt-in-to-new-headless-mode // [Google Chrome and Microsoft Edge]: https://playwright.dev/docs/browsers#google-chrome--microsoft-edge Channel *string `json:"channel"` // Enable Chromium sandboxing. Defaults to `false`. diff --git a/patches/main.patch b/patches/main.patch index f79821d..16768ea 100644 --- a/patches/main.patch +++ b/patches/main.patch @@ -538,7 +538,7 @@ index e286c63bf..7dbd5f4fd 100644 * alias-csharp: RunAndWaitForNavigation - returns: <[null]|[Response]> diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.md -index 369dd995e..5b9f62bba 100644 +index 5b4fc45fe..264b363f0 100644 --- a/docs/src/api/class-locatorassertions.md +++ b/docs/src/api/class-locatorassertions.md @@ -67,7 +67,7 @@ public class ExampleTests : PageTest @@ -550,7 +550,7 @@ index 369dd995e..5b9f62bba 100644 - returns: <[LocatorAssertions]> Makes the assertion check for the opposite condition. For example, this code tests that the Locator doesn't contain text `"error"`: -@@ -1122,7 +1122,7 @@ Expected substring or RegExp or a list of those. +@@ -1139,7 +1139,7 @@ Expected substring or RegExp or a list of those. ### param: LocatorAssertions.toContainText.expected * since: v1.18 @@ -559,7 +559,7 @@ index 369dd995e..5b9f62bba 100644 - `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>> Expected substring or RegExp or a list of those. -@@ -1417,7 +1417,7 @@ Expected class or RegExp or a list of those. +@@ -1434,7 +1434,7 @@ Expected class or RegExp or a list of those. ### param: LocatorAssertions.toHaveClass.expected * since: v1.18 @@ -568,7 +568,7 @@ index 369dd995e..5b9f62bba 100644 - `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>> Expected class or RegExp or a list of those. -@@ -1944,7 +1944,7 @@ Expected string or RegExp or a list of those. +@@ -1961,7 +1961,7 @@ Expected string or RegExp or a list of those. ### param: LocatorAssertions.toHaveText.expected * since: v1.18 @@ -577,7 +577,7 @@ index 369dd995e..5b9f62bba 100644 - `expected` <[string]|[RegExp]|[Array]<[string]>|[Array]<[RegExp]>|[Array]<[string]|[RegExp]>> Expected string or RegExp or a list of those. -@@ -2078,7 +2078,7 @@ await Expect(locator).ToHaveValuesAsync(new Regex[] { new Regex("R"), new Regex( +@@ -2095,7 +2095,7 @@ await Expect(locator).ToHaveValuesAsync(new Regex[] { new Regex("R"), new Regex( ### param: LocatorAssertions.toHaveValues.values * since: v1.23 @@ -1063,7 +1063,7 @@ index 4c3011430..4ced2d60d 100644 - `path` ?<[path]> Path to the JavaScript file. If `path` is a relative path, then it is resolved relative to the current working directory. Optional. diff --git a/docs/src/api/class-tracing.md b/docs/src/api/class-tracing.md -index 5a89dbdac..860d66276 100644 +index 3b0011c7b..48a28fa24 100644 --- a/docs/src/api/class-tracing.md +++ b/docs/src/api/class-tracing.md @@ -142,7 +142,7 @@ If this option is true tracing will @@ -1155,7 +1155,7 @@ index e23316ebc..ae3d20b9f 100644 * since: v1.48 * langs: csharp, java diff --git a/docs/src/api/params.md b/docs/src/api/params.md -index 9b8d3de31..8aa9741c9 100644 +index e059fffe4..2f18feb98 100644 --- a/docs/src/api/params.md +++ b/docs/src/api/params.md @@ -8,7 +8,7 @@ When to consider operation succeeded, defaults to `load`. Events can be either: @@ -1520,7 +1520,7 @@ index 9b8d3de31..8aa9741c9 100644 - %%-context-option-forcedColors-%% - %%-context-option-forcedColors-csharp-python-%% - %%-context-option-logger-%% -@@ -1054,7 +1117,7 @@ Firefox user preferences. Learn more about the Firefox user preferences at +@@ -1058,7 +1121,7 @@ Firefox user preferences. Learn more about the Firefox user preferences at [`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox). ## csharp-java-browser-option-firefoxuserprefs diff --git a/playwright b/playwright index a70a96a..88bc8af 160000 --- a/playwright +++ b/playwright @@ -1 +1 @@ -Subproject commit a70a96ab2565918360cd0f0208b5d12cae318793 +Subproject commit 88bc8afc78ea6ff13d2bbb312b99eb924962766c diff --git a/run.go b/run.go index af7ea63..3d41780 100644 --- a/run.go +++ b/run.go @@ -16,7 +16,7 @@ import ( "strings" ) -const playwrightCliVersion = "1.49.0" +const playwrightCliVersion = "1.49.1" var ( logger = slog.Default()