Utilizing the new Clock API allows to manipulate and control time within tests to verify time-related behavior. This API covers many common scenarios, including:
testing with predefined time;
keeping consistent time and timers;
monitoring inactivity;
ticking through time manually.
# 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(time=datetime.datetime(2024, 2, 2, 8, 0, 0))
page.goto("http://localhost:3333")
Pretend that the user closed the laptop lid and opened it again at 10am.
Multiple methods like locator.click() or locator.press() now support a ControlOrMeta modifier key. This key maps to Meta on macOS and maps to Control on Windows and Linux.
# Press the common keyboard shortcut Control+S or Meta+S to trigger a "Save" operation.
page.keyboard.press("ControlOrMeta+S")
New property httpCredentials.send in apiRequest.newContext() that allows to either always send the Authorization header or only send it in response to 401 Unauthorized.
Playwright now supports Chromium, Firefox and WebKit on Ubuntu 24.04.
v1.45 is the last release to receive WebKit update for macOS 12 Monterey. Please update macOS to keep using the latest WebKit.
Browser Versions
Chromium 127.0.6533.5
Mozilla Firefox 127.0
WebKit 17.4
This version was also tested against the following stable channels:
Google Chrome 126
... (truncated)
Commits
90bf2e6 build(deps): bump mypy from 1.10.0 to 1.10.1 (#2479)
ecb34e3 build(deps): bump types-requests from 2.32.0.20240602 to 2.32.0.20240622 (#2470)
8f9bcd1 chore(roll): roll to Playwright 1.45.1-beta-1719996498000 (#2474)
d83dc6e fix(fetch): serialise empty array in 'data' as JSON (#2476)
c6cc4c9 chore(roll): roll Playwright to 1.45.0-alpha-2024-06-14 (#2464)
b331b8e devops: update conda-incubator/setup-miniconda to v3 (#2467)
3c46eec build(deps): bump flake8 from 7.0.0 to 7.1.0 (#2466)
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 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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the minor-patch group with 3 updates: jsonschema, playwright and ruff.
Updates
jsonschema
from 4.22.0 to 4.23.0Release notes
Sourced from jsonschema's releases.
Changelog
Sourced from jsonschema's changelog.
Commits
cfe8a40
Document the other change, and call this 4.23.0.25127a1
Merge pull request #1282 from rominf/rominf-python3.1340410c4
Declare support for 3.133a44b4b
Merge pull request #1276 from python-jsonschema/pre-commit-ci-update-config6a00e35
[pre-commit.ci] pre-commit autoupdate84fee43
Merge pull request #1273 from python-jsonschema/pre-commit-ci-update-configa90d6e2
[pre-commit.ci] pre-commit autoupdatec3a8641
Merge pull request #1272 from python-jsonschema/pre-commit-ci-update-configdeb5398
[pre-commit.ci] pre-commit autoupdate7fd28c3
Update the (ancient draft3) color format for newer webcolors.Updates
playwright
from 1.44.0 to 1.45.0Release notes
Sourced from playwright's releases.
... (truncated)
Commits
90bf2e6
build(deps): bump mypy from 1.10.0 to 1.10.1 (#2479)ecb34e3
build(deps): bump types-requests from 2.32.0.20240602 to 2.32.0.20240622 (#2470)8f9bcd1
chore(roll): roll to Playwright 1.45.1-beta-1719996498000 (#2474)d83dc6e
fix(fetch): serialise empty array in 'data' as JSON (#2476)c6cc4c9
chore(roll): roll Playwright to 1.45.0-alpha-2024-06-14 (#2464)b331b8e
devops: update conda-incubator/setup-miniconda to v3 (#2467)3c46eec
build(deps): bump flake8 from 7.0.0 to 7.1.0 (#2466)f8c8882
devops: run conda test builds on macos-13d46b729
build(deps): bump types-requests from 2.31.0.20240406 to 2.32.0.20240602 (#2459)5213511
build(deps): bump requests from 2.32.0 to 2.32.3 (#2458)Updates
ruff
from 0.5.0 to 0.5.1Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
Commits
3a72400
Rename publish workflow file extension (yaml
->yml
) (#12206)1b3bff0
Bump version to 0.5.1 (#12205)0f6f73e
[red-knot] Require thatFileSystem
objects implementDebug
(#12204)7910bee
Consider the content of the new cells during notebook sync (#12203)f3ccd15
Revert "Remove--preview
as a required argument forruff server
(#12053)"...1e07bfa
[pycodestyle
] Whitespace after decorator (E204
) (#12140)5e7ba05
docs(*): fix a few typos, consistency issues and links (#12193)d12570e
docs(options): fix some typos and improve consistency (#12191)2f3264e
fix(rules): skip dummy variables forPLR1704
(#12190)e2e0889
[red-knot] Add very basic benchmark (#12182)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 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