Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
feat(webkit): roll to r2235 (#38451)
Yury Semikhatsky240ad805a55e
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.jsonindex 64cfab296f..826f1a7827 100644--- a/packages/playwright-core/browsers.json+++ b/packages/playwright-core/browsers.json@@ -45,7 +45,7 @@},{"name": "webkit",- "revision": "2232",+ "revision": "2235","installByDefault": true,"revisionOverrides": {"debian11-x64": "2105",diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.tsindex b63bbb4992..a64dcb89ef 100644--- a/packages/playwright-core/src/server/webkit/protocol.d.ts+++ b/packages/playwright-core/src/server/webkit/protocol.d.ts@@ -6532,119 +6532,6 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the*/partitionKey?: string;}- /**- * Accessibility Node- */- export interface AXNode {- /**- * The role.- */- role: string;- /**- * A human readable name for the node.- */- name?: string;- /**- * The current value of the node.- */- value?: any;- /**- * An additional human readable description of the node.- */- description?: string;- /**- * Keyboard shortcuts associated with this node.- */- keyshortcuts?: string;- /**- * A human readable alternative to the role.- */- roledescription?: string;- /**- * A description of the current value.- */- valuetext?: string;- /**- * Whether the node is disabled.- */- disabled?: boolean;- /**- * Whether the node is expanded or collapsed.- */- expanded?: boolean;- /**- * Whether the node is focused.- */- focused?: boolean;- /**- * Whether the node is modal.- */- modal?: boolean;- /**- * Whether more than one child can be selected.- */- multiselectable?: boolean;- /**- * Whether the node is read only.- */- readonly?: boolean;- /**- * Whether the node is required.- */- required?: boolean;- /**- * Whether the node is selected in its parent node.- */- selected?: boolean;- /**- * Whether the checkbox is checked, or "mixed".- */- checked?: "true"|"false"|"mixed";- /**- * Whether the toggle button is checked, or "mixed".- */- pressed?: "true"|"false"|"mixed";- /**- * The level of a heading.- */- level?: number;- /**- * The minimum value in a node.- */- valuemin?: number;- /**- * The maximum value in a node.- */- valuemax?: number;- /**- * What kind of autocomplete is supported by a control.- */- autocomplete?: string;- /**- * What kind of popup is currently being shown for a node.- */- haspopup?: string;- /**- * Whether and in what way this node's value is invalid.- */- invalid?: "true"|"false"|"grammar"|"spelling";- /**- * Whether the node is oriented horizontally or vertically.- */- orientation?: string;- /**- * Whether the node is focusable.- */- focusable?: boolean;- /**- * Child AXNodes of this node, if any.- */- children?: AXNode[];- /**- * True if this AXNode corresponds with the ObjectId passed into acessibilitySnapshot.- */- found?: boolean;- }export interface Insets {top: number;right: number;@@ -7129,21 +7016,6 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the}export type insertTextReturnValue = {}- /**- * Serializes and returns all of the accessibility nodes of the page.- */- export type accessibilitySnapshotParameters = {- /**- * Object Id of a node to find in the accessibility tree.- */- objectId?: string;- }- export type accessibilitySnapshotReturnValue = {- /**- * The root AXNode.- */- axNode: AXNode;- }/*** Intercepts file chooser dialog*/@@ -9425,7 +9297,6 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the"Page.archive": Page.archiveParameters;"Page.setScreenSizeOverride": Page.setScreenSizeOverrideParameters;"Page.insertText": Page.insertTextParameters;- "Page.accessibilitySnapshot": Page.accessibilitySnapshotParameters;"Page.setInterceptFileChooserDialog": Page.setInterceptFileChooserDialogParameters;"Page.setDefaultBackgroundColorOverride": Page.setDefaultBackgroundColorOverrideParameters;"Page.createUserWorld": Page.createUserWorldParameters;@@ -9731,7 +9602,6 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the"Page.archive": Page.archiveReturnValue;"Page.setScreenSizeOverride": Page.setScreenSizeOverrideReturnValue;"Page.insertText": Page.insertTextReturnValue;- "Page.accessibilitySnapshot": Page.accessibilitySnapshotReturnValue;"Page.setInterceptFileChooserDialog": Page.setInterceptFileChooserDialogReturnValue;"Page.setDefaultBackgroundColorOverride": Page.setDefaultBackgroundColorOverrideReturnValue;"Page.createUserWorld": Page.createUserWorldReturnValue;diff --git a/tests/page/page-event-pageerror.spec.ts b/tests/page/page-event-pageerror.spec.tsindex 86581da407..0a7a6a8888 100644--- a/tests/page/page-event-pageerror.spec.ts+++ b/tests/page/page-event-pageerror.spec.ts@@ -171,7 +171,7 @@ it('pageErrors should work', async ({ page }) => {it('should fire illegal character error', {annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/38388' },-}, async ({ page, server, browserName }) => {+}, async ({ page, server, browserName, isWindows }) => {server.setRoute('/error.html', (req, res) => {res.end(`<!doctype html>@@ -197,6 +197,8 @@ it('should fire illegal character error', {]);if (browserName === 'chromium')expect(error.message).toContain('Invalid or unexpected token');+ else if (browserName === 'webkit' && isWindows)+ expect(error.message).toContain('No identifiers allowed directly after numeric literal');else if (browserName === 'webkit')expect(error.message).toContain('Invalid character');else