⬆️ Update dependency playwright
to >=1.45.1
#59
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=1.38.0
->>=1.45.1
Release Notes
Microsoft/playwright-python (playwright)
v1.45.1
Compare Source
Highlights
https://github.com/microsoft/playwright-java/issues/1617 - [Bug]: Trace Viewer not reporting all actionshttps://github.com/microsoft/playwright/issues/317644 - [Bug]: some actions do not appear in the trace file
Browser Versions
This version was also tested against the following stable channels:
v1.45.0
Compare Source
Clock
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:
See the clock guide for more details.
Miscellaneous
<input type=file webkitdirectory>
elements.ControlOrMeta
modifier key. This key maps toMeta
on macOS and maps toControl
on Windows and Linux.Press the common keyboard shortcut Control+S or Meta+S to trigger a "Save" operation.
page.keyboard.press("ControlOrMeta+S")
v1.44.0
Compare Source
New APIs
Accessibility assertions
expect(locator).to_have_accessible_name() checks if the element has the specified accessible name:
expect(locator).to_have_accessible_description() checks if the element has the specified accessible description:
expect(locator).to_have_role() checks if the element has the specified ARIA role:
Locator handler
no_wait_after
option.times
option in page.add_locator_handler() to specify maximum number of times the handler should be run.Miscellaneous options
ignore_case
option.Browser Versions
This version was also tested against the following stable channels:
v1.43.0
Compare Source
New APIs
Method BrowserContext.clear_cookies([options]) now supports filters to remove only some cookies.
Clear all cookies.
context.clear_cookies()
New: clear cookies with a particular name.
context.clear_cookies(name="session-id")
New: clear cookies for a particular domain.
context.clear_cookies(domain="my-origin.com")
New method frameLocator.owner converts a FrameLocator object to a Locator. This can be useful when you have a FrameLocator object obtained somewhere, and later on would like to interact with the
iframe
element....
locator = frame_locator.owner
expect(locator).to_be_visible()
v1.42.0
Compare Source
New Locator Handler
New method page.add_locator_handler(locator, handler) registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay. Here is an example that closes a cookie dialog when it appears.
New APIs
tagged
andoutline
.Announcements
Browser Versions
This version was also tested against the following stable channels:
v1.41.2
Compare Source
Highlights
https://github.com/microsoft/playwright-python/issues/2258 - [REGRESSION] Failing step is not highlighted in red in actions panel for versions after 1.39.0https://github.com/microsoft/playwright/issues/291233 - [REGRESSION] route.continue: Protocol error (Fetch.continueRequest): Invalid InterceptionId.
Browser Versions
This version was also tested against the following stable channels:
v1.41.1
Compare Source
Highlights
https://github.com/microsoft/playwright/issues/29067 - [REGRESSION] Codegen/Recorder: not all clicks are being actioned nor recordedhttps://github.com/microsoft/playwright/issues/290199 - [REGRESSION] trace.playwright.dev does not currently support the loading from URL
Browser Versions
This version was also tested against the following stable channels:
v1.41.0
Compare Source
New APIs
style
in page.screenshot() and locator.screenshot() to add custom CSS to the page before taking a screenshot.Browser Versions
This version was also tested against the following stable channels:
v1.40.0
Compare Source
Test Generator Update
New tools to generate assertions:
Here is an example of a generated test with assertions:
New APIs
reason
in page.close([options]), browserContext.close([options]) and browser.close([options]). Close reason is reported for all operations interrupted by the closure.firefox_user_prefs
in browserType.launch_persistent_context(userDataDir[, options]).Other Changes
Browser Versions
This version was also tested against the following stable channels:
v1.39.0
Compare Source
Features
Python 3.12 support.
Browser Versions
This version was also tested against the following stable channels:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.