chore: roll to 1.60.0-alpha-2026-05-05#1916
Open
yury-s wants to merge 2 commits intomicrosoft:mainfrom
Open
Conversation
pavelfeldman
approved these changes
May 5, 2026
4e0c8c9 to
a14b9be
Compare
Ports the following upstream client-side PRs: - microsoft/playwright#39767 - feat: Add `location()` to `WebError` - microsoft/playwright#39950 - feat: page version of toMatchAriaSnapshot - microsoft/playwright#40083 - feat(locator): add `description` option to getByRole - microsoft/playwright#40092 - feat(expect): support pseudo-element in toHaveCSS - microsoft/playwright#40159 - feat(tracing): add tracing.startHar / tracing.stopHar - microsoft/playwright#40196 - chore: remove deprecated `handle` option from exposeBinding - microsoft/playwright#40215 - feat(api): Locator.highlight({ style }) - microsoft/playwright#40219 - feat(api): Page.hideHighlight, Locator.hideHighlight, highlight() returns AutoCloseable - microsoft/playwright#40283 - feat(locator): add drop API for files and clipboard-like data - microsoft/playwright#40315 - feat(browser): Browser.onContext / offContext - microsoft/playwright#40341 - feat(browsercontext): mirror Page lifecycle events on BrowserContext - microsoft/playwright#40377 - feat(route): expose WebSocket subprotocols on WebSocketRoute - microsoft/playwright#40606 - feat(api): unify WebError and ConsoleMessage location - microsoft/playwright#40651 - docs: alias drop-payload Object types Protocol shape change for FrameExpectResult.received (now `{ value, ariaSnapshot }` instead of a bare SerializedValue) — updated AssertionsBase to unwrap it. Generator updates: added new types to relevant import lists; share topLevelTypes between the assertion and non-assertion generate runs so PseudoElement gets emitted into options/.
Replace the stale reference to the upstream "client side changes" workflow with an inline explanation of what each watched path can affect on the Java side, so the rolling instructions stand on their own.
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.
Summary
Driver:
1.59.1-beta-1775762078000→1.60.0-alpha-2026-05-05Upstream PRs ported
location()toWebErrorplaywright#39767 —WebError.location()PageAssertions.matchesAriaSnapshotLocator.GetByRoleOptions.description(wired inLocatorUtils.getByRoleSelector; interface field auto-generated from api.json)PseudoElementenum +LocatorAssertions.HasCSSOptions.pseudoTracing.startHar/Tracing.stopHar(HAR recorder state moved fromBrowserContextImpltoTracingImplto mirror the upstream channel move)handlefromexposeBinding(option was deprecated; tests covering it deleted)Locator.HighlightOptions.stylePage.hideHighlight,Locator.hideHighlight,Locator.highlight()now returnsAutoCloseableLocator.drop(Payload, DropOptions)supporting file paths,FilePayload(single/array), and clipboard-likedataBrowser.onContext/offContextBrowserContextlifecycle events:onPageLoad/offPageLoad,onPageClose/offPageClose,onFrameAttached/offFrameAttached,onFrameDetached/offFrameDetached,onFrameNavigated/offFrameNavigated,onDownload/offDownloadWebSocketRoute.protocols()WebError.location()shape ({ url, line, column })Other changes
FrameExpectResult.receivedis now{ value, ariaSnapshot }instead of a bareSerializedValue. UpdatedAssertionsBaseto unwrap.topLevelTypesacross assertions/non-assertions runs soPseudoElementlands inoptions/; hard-codedjava.util.Mapimport forPayload.TestSelectorsRole.errorsupdated for the newdescriptionattribute in the role selector error message.exposeBindingHandle*tests inTestBrowserContextExposeFunction/TestPageExposeFunction(option removed upstream).Verified already supported / no-op for Java
BrowserType.ConnectOverCDPOptions.noDefaultsflows throughgson().toJsonTree(options).AriaSnapshotOptions.boxesalready auto-generated and passes through.Browser.bind/unbindalready in Java.Screencast.showActions/hideActionsalready implemented.Skipped
Tracing.startHarresourcesDiroption islangs: js-only in api.json.ConsoleMessage.location()returnsStringvia a separatelangs: csharp, javadefinition; not affected by the JS shape change.New tests
TestBrowserContextEvents:pageLoadEventShouldWork,frameNavigatedEventShouldWork,pageCloseEventShouldWork,frameAttachedEventShouldWork,frameDetachedEventShouldWork,weberrorEventShouldIncludeLocationTestBrowser1:shouldFireContextEventTestRouteWebSocket:shouldExposeProtocolsToTheRouteHandlerTestLocatorHighlight:highlightAndHideHighlightShouldNotThrowTestPageDrop(new file): 4 tests covering single/multiple file payload, clipboard data, and local file pathTestPageAriaSnapshot:pageMatchesAriaSnapshotTestTracing:shouldRecordHarWithStartHarStopHarSkill update
The
playwright-rollskill now determines the change list from upstream commits matching the trigger paths in.github/workflows/pr_check_client_side_changes.yml, instead of from the auto-generated "Backport client side changes" issue (which is being phased out upstream).Test plan
mvn -f playwright/pom.xml test— 1658 tests, 0 failures, 27 skipped