playwright-java-test-automation-architecture
playwright-java-test-automation-architecture copied to clipboard
Bump com.microsoft.playwright:playwright from 1.43.0 to 1.44.0
Bumps com.microsoft.playwright:playwright from 1.43.0 to 1.44.0.
Release notes
Sourced from com.microsoft.playwright:playwright's releases.
v1.44.0
New APIs
Accessibility assertions
assertThat(locator).toHaveAccessibleName() checks if the element has the specified accessible name:
Locator locator = page.getByRole(AriaRole.BUTTON); assertThat(locator).hasAccessibleName("Submit");assertThat(locator).toHaveAccessibleDescription() checks if the element has the specified accessible description:
Locator locator = page.getByRole(AriaRole.BUTTON); assertThat(locator).hasAccessibleDescription("Upload a photo");assertThat(locator).toHaveRole() checks if the element has the specified ARIA role:
Locator locator = page.getByTestId("save-button"); assertThat(locator).hasRole(AriaRole.BUTTON);Locator handler
- After executing the handler added with page.addLocatorHandler(), Playwright will now wait until the overlay that triggered the handler is not visible anymore. You can opt-out of this behavior with the new
setNoWaitAfteroption.- You can use new
setTimesoption in page.addLocatorHandler() to specify maximum number of times the handler should be run.- The handler in page.addLocatorHandler() now accepts the locator as argument.
- New page.removeLocatorHandler() method for removing previously added locator handlers.
Locator locator = page.getByText("This interstitial covers the button"); page.addLocatorHandler(locator, overlay -> { overlay.locator("#close").click(); }, new Page.AddLocatorHandlerOptions().setTimes(3).setNoWaitAfter(true)); // Run your tests that can be interrupted by the overlay. // ... page.removeLocatorHandler(locator);Miscellaneous options
New method formData.append() allows to specify repeating fields with the same name in
setMultipartoption inRequestOptions:FormData formData = FormData.create(); formData.append("file", new FilePayload("f1.js", "text/javascript", "var x = 2024;".getBytes(StandardCharsets.UTF_8))); formData.append("file", new FilePayload("f2.txt", "text/plain", "hello".getBytes(StandardCharsets.UTF_8)));
... (truncated)
Commits
af2dd24chore: set version 1.44.0 (#1578)75062c4chore: roll 1.44.0 (#1575)c9ea56adevops: stop producing .sha256 files, they are not required anymore (#1570)e4c427adevops: fix ESRP publishing (#1569)0471c5edevops: update to EsrpRelease@7 (#1566)5636edftest: ControlOrMeta modifier (#1564)abfe50cchore(deps): bump org.apache.maven.plugins:maven-jar-plugin from 3.3.0 to 3.4...d723646chore: roll driver to 1.44.0-beta-1714435420000 (#1563)fe51fb4chore(deps): bump org.apache.maven.plugins:maven-install-plugin from 3.1.1 to...764cc8cchore(deps): bump org.apache.maven.plugins:maven-deploy-plugin from 3.1.1 to ...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)