Bump playwright to v1.60.0#419
Merged
Merged
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.59.0→1.60.0v1.59.0-noble→v1.60.0-nobleRelease Notes
microsoft/playwright-dotnet (Microsoft.Playwright)
v1.60.0💬 Custom assertion messages
Expect()overloads now accept a custom message that is prepended to any failure, giving extra context in test reports:When the assertion fails, the message is prefixed:
🌐 HAR recording on Tracing
Tracing.StartHarAsync() / Tracing.StopHarAsync() expose HAR recording as a first-class tracing API, with the same
Content,ModeandUrlFilteroptions asRecordHar:🪝 Drop API
New Locator.DropAsync() simulates an external drag-and-drop of files or clipboard-like data onto an element. Playwright dispatches
dragenter,dragover, anddropwith a synthetic [DataTransfer] in the page context — works cross-browser and is great for testing upload zones:🎯 Aria snapshots
Page.Locator("body").Boxesoption on Locator.AriaSnapshotAsync() / Page.AriaSnapshotAsync() appends each element's bounding box as[box=x,y,width,height], useful for AI consumption.New APIs
Browser, Context and Page
Pagenow implementsIAsyncDisposable— pages can be used withawait usingfor automatic cleanup.Locators and Assertions
Descriptionin Page.GetByRole() / Locator.GetByRole() / Frame.GetByRole() / FrameLocator.GetByRole() for matching the accessible description.Pseudoin Expect(locator).ToHaveCSSAsync() reads computed styles from::beforeor::after.Stylein Locator.HighlightAsync() applies extra inline CSS to the highlight overlay, plus new Page.HideHighlightAsync() to clear all highlights.Network
NoDefaultsin BrowserType.ConnectOverCDPAsync() disables Playwright's default overrides on the default context (download behavior, focus emulation, media emulation), so attaching to a user's daily-driver browser doesn't disturb its state.Errors
🛠️ Other improvements
Breaking Changes⚠️
Handleoption onBrowserContext.ExposeBindingAsyncandPage.ExposeBindingAsync.Browser Versions
This version was also tested against the following stable channels:
Configuration
📅 Schedule: (in timezone Europe/Helsinki)
* 21-22 * * 3)🚦 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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.