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 r1472 (#6425)
Pavel Feldman791443d71f0c
diff --git a/browsers.json b/browsers.jsonindex 8cdcd8b781..f0dce12737 100644--- a/browsers.json+++ b/browsers.json@@ -18,7 +18,7 @@},{"name": "webkit",- "revision": "1468",+ "revision": "1472","installByDefault": true,"revisionOverrides": {"mac10.14": "1443"diff --git a/src/server/webkit/protocol.ts b/src/server/webkit/protocol.tsindex bbe340bd46..9eef817b84 100644--- a/src/server/webkit/protocol.ts+++ b/src/server/webkit/protocol.ts@@ -8031,11 +8031,19 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the*/export type ScreencastId = string;+ export type screencastFramePayload = {+ /**+ * Base64 data+ */+ data: string;+ deviceWidth: number;+ deviceHeight: number;+ }/*** Starts recoring video to speified file.*/- export type startParameters = {+ export type startVideoParameters = {/*** Output file location.*/@@ -8044,7 +8052,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of theheight: number;scale?: number;}- export type startReturnValue = {+ export type startVideoReturnValue = {/*** Unique identifier of the screencast.*/@@ -8053,9 +8061,38 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the/*** Stops recoding video. Returns after the file has been closed.*/- export type stopParameters = {+ export type stopVideoParameters = {}- export type stopReturnValue = {+ export type stopVideoReturnValue = {+ }+ /**+ * Starts screencast.+ */+ export type startScreencastParameters = {+ width: number;+ height: number;+ quality: number;+ }+ export type startScreencastReturnValue = {+ /**+ * Screencast session generation.+ */+ generation: number;+ }+ /**+ * Stops screencast.+ */+ export type stopScreencastParameters = {+ }+ export type stopScreencastReturnValue = {+ }+ export type screencastFrameAckParameters = {+ /**+ * Screencast session generation+ */+ generation: number;+ }+ export type screencastFrameAckReturnValue = {}}@@ -8612,6 +8649,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the"Playwright.downloadFinished": Playwright.downloadFinishedPayload;"Playwright.screencastFinished": Playwright.screencastFinishedPayload;"Runtime.executionContextCreated": Runtime.executionContextCreatedPayload;+ "Screencast.screencastFrame": Screencast.screencastFramePayload;"ScriptProfiler.trackingStart": ScriptProfiler.trackingStartPayload;"ScriptProfiler.trackingUpdate": ScriptProfiler.trackingUpdatePayload;"ScriptProfiler.trackingComplete": ScriptProfiler.trackingCompletePayload;@@ -8895,8 +8933,11 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the"Runtime.enableControlFlowProfiler": Runtime.enableControlFlowProfilerParameters;"Runtime.disableControlFlowProfiler": Runtime.disableControlFlowProfilerParameters;"Runtime.getBasicBlocks": Runtime.getBasicBlocksParameters;- "Screencast.start": Screencast.startParameters;- "Screencast.stop": Screencast.stopParameters;+ "Screencast.startVideo": Screencast.startVideoParameters;+ "Screencast.stopVideo": Screencast.stopVideoParameters;+ "Screencast.startScreencast": Screencast.startScreencastParameters;+ "Screencast.stopScreencast": Screencast.stopScreencastParameters;+ "Screencast.screencastFrameAck": Screencast.screencastFrameAckParameters;"ScriptProfiler.startTracking": ScriptProfiler.startTrackingParameters;"ScriptProfiler.stopTracking": ScriptProfiler.stopTrackingParameters;"ServiceWorker.getInitializationInfo": ServiceWorker.getInitializationInfoParameters;@@ -9184,8 +9225,11 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the"Runtime.enableControlFlowProfiler": Runtime.enableControlFlowProfilerReturnValue;"Runtime.disableControlFlowProfiler": Runtime.disableControlFlowProfilerReturnValue;"Runtime.getBasicBlocks": Runtime.getBasicBlocksReturnValue;- "Screencast.start": Screencast.startReturnValue;- "Screencast.stop": Screencast.stopReturnValue;+ "Screencast.startVideo": Screencast.startVideoReturnValue;+ "Screencast.stopVideo": Screencast.stopVideoReturnValue;+ "Screencast.startScreencast": Screencast.startScreencastReturnValue;+ "Screencast.stopScreencast": Screencast.stopScreencastReturnValue;+ "Screencast.screencastFrameAck": Screencast.screencastFrameAckReturnValue;"ScriptProfiler.startTracking": ScriptProfiler.startTrackingReturnValue;"ScriptProfiler.stopTracking": ScriptProfiler.stopTrackingReturnValue;"ServiceWorker.getInitializationInfo": ServiceWorker.getInitializationInfoReturnValue;diff --git a/src/server/webkit/wkPage.ts b/src/server/webkit/wkPage.tsindex bc64fb44cf..cd86f5e57a 100644--- a/src/server/webkit/wkPage.ts+++ b/src/server/webkit/wkPage.ts@@ -737,7 +737,7 @@ export class WKPage implements PageDelegate {async _startScreencast(options: types.PageScreencastOptions): Promise<void> {assert(!this._recordingVideoFile);- const { screencastId } = await this._pageProxySession.send('Screencast.start', {+ const { screencastId } = await this._pageProxySession.send('Screencast.startVideo', {file: options.outputFile,width: options.width,height: options.height,@@ -749,7 +749,7 @@ export class WKPage implements PageDelegate {async _stopScreencast(): Promise<void> {if (!this._recordingVideoFile)return;- await this._pageProxySession.sendMayFail('Screencast.stop');+ await this._pageProxySession.sendMayFail('Screencast.stopVideo');this._recordingVideoFile = null;}