Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(release-notes): add 1.26 release notes for language ports (#17345)
Max Schmitt4b8a85e69d2d
diff --git a/docs/src/api/class-locatorassertions.md b/docs/src/api/class-locatorassertions.mdindex 935fa90ed2..9fb6b2eaf4 100644--- a/docs/src/api/class-locatorassertions.md+++ b/docs/src/api/class-locatorassertions.md@@ -958,7 +958,7 @@ presence.```jsconst locator = page.locator('input');-// Assert attribute existance.+// Assert attribute existence.await expect(locator).toHaveAttribute('disabled');await expect(locator).not.toHaveAttribute('open');```diff --git a/docs/src/release-notes-csharp.md b/docs/src/release-notes-csharp.mdindex 91f01a9c75..24f29b117a 100644--- a/docs/src/release-notes-csharp.md+++ b/docs/src/release-notes-csharp.md@@ -4,6 +4,38 @@ title: "Release notes"toc_max_heading_level: 2---+## Version 1.26++### Assertions++- [`method: LocatorAssertions.toHaveAttribute#2`] can now be used for asserting attribute existence.+- New option `Enabled` for [`method: LocatorAssertions.toBeEnabled`].+- [`method: LocatorAssertions.toHaveText`] now pierces open shadow roots.+- New option `Editable` for [`method: LocatorAssertions.toBeEditable`].+- New option `Visible` for [`method: LocatorAssertions.toBeVisible`].+- [`method: APIResponseAssertions.toBeOK`] is now available.++### Other highlights++- New option `MaxRedirects` for [`method: APIRequestContext.get`] and others to limit redirect count.+- Codegen now supports NUnit and MSTest frameworks.+- ASP .NET is now supported.++### Behavior Change++A bunch of Playwright APIs already support the `WaitUntil: WaitUntilState.DOMContentLoaded` option.+For example:++```csharp+await Page.GotoAsync("https://playwright.dev", new() { WaitUntil = WaitUntilState.DOMContentLoaded });+```++Prior to 1.26, this would wait for all iframes to fire the `DOMContentLoaded`+event.++To align with web specification, the `WaitUntilState.DOMContentLoaded` value only waits for+the target frame to fire the `'DOMContentLoaded'` event. Use `WaitUntil: WaitUntilState.Load` to wait for all iframes.+## Version 1.25### New .runsettings file supportdiff --git a/docs/src/release-notes-java.md b/docs/src/release-notes-java.mdindex 1e57cb3fda..16b4240dba 100644--- a/docs/src/release-notes-java.md+++ b/docs/src/release-notes-java.md@@ -4,6 +4,36 @@ title: "Release notes"toc_max_heading_level: 2---+## Version 1.26++### Assertions++- [`method: LocatorAssertions.toHaveAttribute#2`] can now be used for asserting attribute existence.+- New option `enabled` for [`method: LocatorAssertions.toBeEnabled`].+- [`method: LocatorAssertions.toHaveText`] now pierces open shadow roots.+- New option `editable` for [`method: LocatorAssertions.toBeEditable`].+- New option `visible` for [`method: LocatorAssertions.toBeVisible`].++### Other highlights++- New option `setMaxRedirects` for [`method: APIRequestContext.get`] and others to limit redirect count.+- Docker images are now using OpenJDK 17.++### Behavior Change++A bunch of Playwright APIs already support the `setWaitUntil(WaitUntilState.DOMCONTENTLOADED)` option.+For example:++```js+page.navigate("https://playwright.dev", new Page.NavigateOptions().setWaitUntil(WaitUntilState.DOMCONTENTLOADED));+```++Prior to 1.26, this would wait for all iframes to fire the `DOMContentLoaded`+event.++To align with web specification, the `WaitUntilState.DOMCONTENTLOADED` value only waits for+the target frame to fire the `'DOMContentLoaded'` event. Use `setWaitUntil(WaitUntilState.LOAD)` to wait for all iframes.+## Version 1.25### New APIs & changesdiff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.mdindex fab7e1f28e..d744c0c401 100644--- a/docs/src/release-notes-js.md+++ b/docs/src/release-notes-js.md@@ -18,6 +18,7 @@ Read more in [our documentation](./docker#experimental-playwright-test-docker-in### Assertions+- [`method: LocatorAssertions.toHaveAttribute#2`] can now be used for asserting attribute existence.- New option `enabled` for [`method: LocatorAssertions.toBeEnabled`].- [`method: LocatorAssertions.toHaveText`] now pierces open shadow roots.- New option `editable` for [`method: LocatorAssertions.toBeEditable`].diff --git a/docs/src/release-notes-python.md b/docs/src/release-notes-python.mdindex 4fcea137c1..3988b84156 100644--- a/docs/src/release-notes-python.md+++ b/docs/src/release-notes-python.md@@ -4,6 +4,36 @@ title: "Release notes"toc_max_heading_level: 2---+## Version 1.26++### Assertions++- [`method: LocatorAssertions.toHaveAttribute#2`] can now be used for asserting attribute existence.+- New option `enabled` for [`method: LocatorAssertions.toBeEnabled`].+- [`method: LocatorAssertions.toHaveText`] now pierces open shadow roots.+- New option `editable` for [`method: LocatorAssertions.toBeEditable`].+- New option `visible` for [`method: LocatorAssertions.toBeVisible`].++### Other highlights++- New option `max_redirects` for [`method: APIRequestContext.get`] and others to limit redirect count.+- Python 3.11 is now supported.++### Behavior Change++A bunch of Playwright APIs already support the `wait_until: "domcontentloaded"` option.+For example:++```python+page.goto("https://playwright.dev", wait_until="domcontentloaded")+```++Prior to 1.26, this would wait for all iframes to fire the `DOMContentLoaded`+event.++To align with web specification, the `'domcontentloaded'` value only waits for+the target frame to fire the `'DOMContentLoaded'` event. Use `wait_until="load"` to wait for all iframes.+## Version 1.25### Announcementsdiff --git a/packages/playwright-test/types/test.d.ts b/packages/playwright-test/types/test.d.tsindex 4687c35e27..c5750e9cb4 100644--- a/packages/playwright-test/types/test.d.ts+++ b/packages/playwright-test/types/test.d.ts@@ -3461,7 +3461,7 @@ interface LocatorAssertions {** ```js* const locator = page.locator('input');- * // Assert attribute existance.+ * // Assert attribute existence.* await expect(locator).toHaveAttribute('disabled');* await expect(locator).not.toHaveAttribute('open');* ```