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: AriaRole is enum (#17918)
Yury Semikhatsky946994ca924d
diff --git a/docs/src/release-notes-java.md b/docs/src/release-notes-java.mdindex 198f1d64cb..a33d316136 100644--- a/docs/src/release-notes-java.md+++ b/docs/src/release-notes-java.md@@ -21,7 +21,7 @@ page.getByLabel("User Name").fill("John");page.getByLabel("Password").fill("secret-password");-page.getByRole("button", new Page.GetByRoleOptions().setName("Sign in")).click();+page.getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Sign in")).click();assertThat(page.getByText("Welcome, John!")).isVisible();```@@ -37,7 +37,7 @@ All the same methods are also available on [Locator], [FrameLocator] and [Frame]- [`method: LocatorAssertions.toHaveAttribute`] with an empty value does not match missing attribute anymore. For example, the following snippet will succeed when `button` **does not** have a `disabled` attribute.```js- assertThat(page.getByRole("button")).hasAttribute("disabled", "");+ assertThat(page.getByRole(AriaRole.BUTTON)).hasAttribute("disabled", "");```### Browser Versions