From f1976f60db61c8277cd2d5087e2dcccd53346ae6 Mon Sep 17 00:00:00 2001 From: KS Date: Tue, 12 Sep 2023 11:35:16 -0400 Subject: [PATCH] Have only one stop method --- lib/core/engine/command/chromeTrace.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/core/engine/command/chromeTrace.js b/lib/core/engine/command/chromeTrace.js index 9fdfe3f7f..724a72d3a 100644 --- a/lib/core/engine/command/chromeTrace.js +++ b/lib/core/engine/command/chromeTrace.js @@ -31,20 +31,6 @@ export class chromeTrace { } async stop() { - if (this.options.browser === 'chrome') { - if (this.options.chrome.timelineRecordingType === 'custom') { - return this.engineDelegate.getCDPClient().stopTrace(); - } else { - log.info( - 'You need to set traceRecordingType to custom to turn on the profiler in scripting' - ); - } - } else { - throw new Error('Trace only works in Chrome'); - } - } - - async stopAndCollect() { if (this.options.browser === 'chrome') { if (this.options.chrome.timelineRecordingType === 'custom') { let result = this.result[0];