Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build(deps-dev): Bump com.microsoft.playwright:playwright from 1.44.0…
… to 1.45.0 (#747) Bumps [com.microsoft.playwright:playwright](https://github.com/microsoft/playwright-java) from 1.44.0 to 1.45.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/microsoft/playwright-java/releases">com.microsoft.playwright:playwright's releases</a>.</em></p> <blockquote> <h2>v1.45.0</h2> <h2>Clock</h2> <p>Utilizing the new <a href="https://playwright.dev/java/docs/api/class-clock">Clock</a> API allows to manipulate and control time within tests to verify time-related behavior. This API covers many common scenarios, including:</p> <ul> <li>testing with predefined time;</li> <li>keeping consistent time and timers;</li> <li>monitoring inactivity;</li> <li>ticking through time manually.</li> </ul> <pre lang="java"><code>// Initialize clock with some time before the test time and let the page load // naturally. `Date.now` will progress as the timers fire. page.clock().install(new Clock.InstallOptions().setTime("2024-02-02T08:00:00")); page.navigate("http://localhost:3333"); Locator locator = page.getByTestId("current-time"); <p>// Pretend that the user closed the laptop lid and opened it again at 10am.<br /> // Pause the time once reached that point.<br /> page.clock().pauseAt("2024-02-02T10:00:00");</p> <p>// Assert the page state.<br /> assertThat(locator).hasText("2/2/2024, 10:00:00 AM");</p> <p>// Close the laptop lid again and open it at 10:30am.<br /> page.clock().fastForward("30:00");<br /> assertThat(locator).hasText("2/2/2024, 10:30:00 AM");<br /> </code></pre></p> <p>See <a href="https://playwright.dev/java/docs/clock">the clock guide</a> for more details.</p> <h2>Miscellaneous</h2> <ul> <li> <p>Method <a href="https://playwright.dev/java/docs/api/class-locator#locator-set-input-files">locator.setInputFiles()</a> now supports uploading a directory for <code><input type=file webkitdirectory></code> elements.</p> <pre lang="java"><code>page.getByLabel("Upload directory").setInputFiles(Paths.get("mydir")); </code></pre> </li> <li> <p>Multiple methods like <a href="https://playwright.dev/java/docs/api/class-locator#locator-click">locator.click()</a> or <a href="https://playwright.dev/java/docs/api/class-locator#locator-press">locator.press()</a> now support a <code>ControlOrMeta</code> modifier key. This key maps to <code>Meta</code> on macOS and maps to <code>Control</code> on Windows and Linux.</p> <pre lang="java"><code>// Press the common keyboard shortcut Control+S or Meta+S to trigger a "Save" operation. page.keyboard.press("ControlOrMeta+S"); </code></pre> </li> <li> <p>New property <code>httpCredentials.send</code> in <a href="https://playwright.dev/java/docs/api/class-apirequest#api-request-new-context">apiRequest.newContext()</a> that allows to either always send the <code>Authorization</code> header or only send it in response to <code>401 Unauthorized</code>.</p> </li> <li> <p>Playwright now supports Chromium, Firefox and WebKit on Ubuntu 24.04.</p> </li> <li> <p>v1.45 is the last release to receive WebKit update for macOS 12 Monterey. Please update macOS to keep using the latest WebKit.</p> </li> </ul> <h2>Browser Versions</h2> <ul> <li>Chromium 127.0.6533.5</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/microsoft/playwright-java/commit/507e2c20d497a281bff8585e8ea6af862bb8c593"><code>507e2c2</code></a> chore: set version to 1.45.0 (<a href="https://redirect.github.com/microsoft/playwright-java/issues/1611">#1611</a>)</li> <li><a href="https://github.com/microsoft/playwright-java/commit/d9ac70c66b2ed3e5ef693733bc90a41dca50d97c"><code>d9ac70c</code></a> chore: roll driver to 1.45.0-beta (<a href="https://redirect.github.com/microsoft/playwright-java/issues/1610">#1610</a>)</li> <li><a href="https://github.com/microsoft/playwright-java/commit/4279a4ef3ead8b955baeac6b5128d81816d80cfe"><code>4279a4e</code></a> chore(deps): bump org.apache.maven.plugins:maven-jar-plugin from 3.4.1 to 3.4...</li> <li><a href="https://github.com/microsoft/playwright-java/commit/141afb1f094fac516a6458d7149aaed01b248a4c"><code>141afb1</code></a> chore(deps): bump org.apache.maven.plugins:maven-clean-plugin from 3.3.2 to 3...</li> <li><a href="https://github.com/microsoft/playwright-java/commit/2eaae58659f303bbbe8860f19666369d432b48df"><code>2eaae58</code></a> chore(deps): bump org.apache.maven.plugins:maven-surefire-plugin from 3.2.5 t...</li> <li><a href="https://github.com/microsoft/playwright-java/commit/e4828d00b6151fa2f168d9cdf572ec20d3dbc679"><code>e4828d0</code></a> chore: roll 1.45.0 (<a href="https://redirect.github.com/microsoft/playwright-java/issues/1609">#1609</a>)</li> <li><a href="https://github.com/microsoft/playwright-java/commit/a08ab2dcae08bc0ec78b2fce886a4e9ade420eab"><code>a08ab2d</code></a> devops: roll_driver script (<a href="https://redirect.github.com/microsoft/playwright-java/issues/1605">#1605</a>)</li> <li><a href="https://github.com/microsoft/playwright-java/commit/626050d9886759e663135df0541afa5be05f7c2a"><code>626050d</code></a> fix: Update README.md to fix wrong demo code (<a href="https://redirect.github.com/microsoft/playwright-java/issues/1601">#1601</a>)</li> <li><a href="https://github.com/microsoft/playwright-java/commit/4cc3fa3012fef4abd770e49c061228e7aeb0f9ed"><code>4cc3fa3</code></a> chore: roll driver to 1.45.0 beta, implement new features (<a href="https://redirect.github.com/microsoft/playwright-java/issues/1600">#1600</a>)</li> <li><a href="https://github.com/microsoft/playwright-java/commit/226d0753552cb6a29daf93f9b7acc4955d891905"><code>226d075</code></a> chore(deps): bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.3 to...</li> <li>Additional commits viewable in <a href="https://github.com/microsoft/playwright-java/compare/v1.44.0...v1.45.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
- Loading branch information