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 r1535 (#8457)

github-actions[bot]fe96cc274fe0
diff --git a/browsers.json b/browsers.json
index 03ad4bd57e..331b6b2232 100644
--- a/browsers.json
+++ b/browsers.json
@@ -23,7 +23,7 @@
},
{
"name": "webkit",
- "revision": "1534",
+ "revision": "1535",
"installByDefault": true,
"revisionOverrides": {
"mac10.14": "1446"
diff --git a/src/server/webkit/protocol.d.ts b/src/server/webkit/protocol.d.ts
index 903444d66a..53e244de92 100644
--- a/src/server/webkit/protocol.d.ts
+++ b/src/server/webkit/protocol.d.ts
@@ -4681,6 +4681,35 @@ Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
}
export type dispatchMouseEventReturnValue = {
}
+ /**
+ * Dispatches a wheel event to the page.
+ */
+ export type dispatchWheelEventParameters = {
+ /**
+ * 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. 0 refers to
+the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
+ */
+ y: number;
+ /**
+ * Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
+(default: 0).
+ */
+ modifiers?: number;
+ /**
+ * X delta in CSS pixels for mouse wheel event (default: 0).
+ */
+ deltaX?: number;
+ /**
+ * Y delta in CSS pixels for mouse wheel event (default: 0).
+ */
+ deltaY?: number;
+ }
+ export type dispatchWheelEventReturnValue = {
+ }
/**
* Dispatches a tap event to the page.
*/
@@ -8951,6 +8980,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"IndexedDB.clearObjectStore": IndexedDB.clearObjectStoreParameters;
"Input.dispatchKeyEvent": Input.dispatchKeyEventParameters;
"Input.dispatchMouseEvent": Input.dispatchMouseEventParameters;
+ "Input.dispatchWheelEvent": Input.dispatchWheelEventParameters;
"Input.dispatchTapEvent": Input.dispatchTapEventParameters;
"Inspector.enable": Inspector.enableParameters;
"Inspector.disable": Inspector.disableParameters;
@@ -9249,6 +9279,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"IndexedDB.clearObjectStore": IndexedDB.clearObjectStoreReturnValue;
"Input.dispatchKeyEvent": Input.dispatchKeyEventReturnValue;
"Input.dispatchMouseEvent": Input.dispatchMouseEventReturnValue;
+ "Input.dispatchWheelEvent": Input.dispatchWheelEventReturnValue;
"Input.dispatchTapEvent": Input.dispatchTapEventReturnValue;
"Inspector.enable": Inspector.enableReturnValue;
"Inspector.disable": Inspector.disableReturnValue;