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 r2299 (#41048)
microsoft-playwright-automation[bot]fda3cd3c0b3e
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.jsonindex 260b171266..7d0d277bf2 100644--- a/packages/playwright-core/browsers.json+++ b/packages/playwright-core/browsers.json@@ -45,7 +45,7 @@},{"name": "webkit",- "revision": "2298",+ "revision": "2299","installByDefault": true,"revisionOverrides": {"mac14": "2251",diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.tsindex 2703a24e3c..c29818c806 100644--- a/packages/playwright-core/src/server/webkit/protocol.d.ts+++ b/packages/playwright-core/src/server/webkit/protocol.d.ts@@ -6402,6 +6402,10 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the* Coordinate system used by supplied coordinates.*/export type CoordinateSystem = "Viewport"|"Page";+ /**+ * Image format used to encode a captured snapshot.+ */+ export type ImageFormat = "png"|"jpeg"|"webp";/*** Same-Site policy of a cookie.*/@@ -6996,10 +7000,18 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the* By default, screenshot is inflated by device scale factor to avoid blurry image. This flag disables it.*/omitDeviceScaleFactor?: boolean;+ /**+ * Image format of the resulting snapshot. Defaults to "png".+ */+ format?: ImageFormat;+ /**+ * Compression quality from 0 to 100 (ignored for the "png" format). Defaults to 80.+ */+ quality?: number;}export type snapshotRectReturnValue = {/**- * Base64-encoded image data (PNG).+ * Base64-encoded image data.*/dataURL: string;}