Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

feat(webkit): roll to r2038 (#31441)

Playwright Service41b185d643c3
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.json
index d5bc5bad36..6e1da4421b 100644
--- a/packages/playwright-core/browsers.json
+++ b/packages/playwright-core/browsers.json
@@ -27,7 +27,7 @@
},
{
"name": "webkit",
- "revision": "2037",
+ "revision": "2038",
"installByDefault": true,
"revisionOverrides": {
"mac10.14": "1446",
diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.ts
index ba9ba9e5d3..9e71534a17 100644
--- a/packages/playwright-core/src/server/webkit/protocol.d.ts
+++ b/packages/playwright-core/src/server/webkit/protocol.d.ts
@@ -5013,6 +5013,23 @@ might return multiple quads for inline nodes.
* UTC time in seconds, counted from January 1, 1970.
*/
export type TimeSinceEpoch = number;
+ /**
+ * Touch point.
+ */
+ export interface TouchPoint {
+ /**
+ * X coordinate of the event relative to the main frame's viewport in CSS pixels.
+ */
+ x: number;
+ /**
+ * Y coordinate of the event relative to the main frame's viewport in CSS pixels.
+ */
+ y: number;
+ /**
+ * Identifier used to track touch sources between events, must be unique within an event.
+ */
+ id: number;
+ }
/**
@@ -5169,6 +5186,26 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
}
export type dispatchTapEventReturnValue = {
}
+ /**
+ * Dispatches a touch event to the page.
+ */
+ export type dispatchTouchEventParameters = {
+ /**
+ * Type of the touch event.
+ */
+ type: "touchStart"|"touchMove"|"touchEnd"|"touchCancel";
+ /**
+ * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
+(default: 0).
+ */
+ modifiers?: number;
+ /**
+ * List of touch points
+ */
+ touchPoints?: TouchPoint[];
+ }
+ export type dispatchTouchEventReturnValue = {
+ }
}
export module Inspector {
@@ -9532,6 +9569,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Input.dispatchMouseEvent": Input.dispatchMouseEventParameters;
"Input.dispatchWheelEvent": Input.dispatchWheelEventParameters;
"Input.dispatchTapEvent": Input.dispatchTapEventParameters;
+ "Input.dispatchTouchEvent": Input.dispatchTouchEventParameters;
"Inspector.enable": Inspector.enableParameters;
"Inspector.disable": Inspector.disableParameters;
"Inspector.initialized": Inspector.initializedParameters;
@@ -9843,6 +9881,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Input.dispatchMouseEvent": Input.dispatchMouseEventReturnValue;
"Input.dispatchWheelEvent": Input.dispatchWheelEventReturnValue;
"Input.dispatchTapEvent": Input.dispatchTapEventReturnValue;
+ "Input.dispatchTouchEvent": Input.dispatchTouchEventReturnValue;
"Inspector.enable": Inspector.enableReturnValue;
"Inspector.disable": Inspector.disableReturnValue;
"Inspector.initialized": Inspector.initializedReturnValue;