browsertime 27.2.0 → 27.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/bin/browsertime.js +31 -5
- package/bin/browsertimeWebPageReplay.js +1 -1
- package/lib/chrome/coverage.js +198 -0
- package/lib/chrome/webdriver/chromium.js +14 -0
- package/lib/core/engine/collector.js +8 -0
- package/lib/core/engine/command/measure.js +4 -5
- package/lib/core/engine/commands.js +14 -26
- package/lib/core/engine/context.js +4 -9
- package/lib/core/engine/index.js +6 -2
- package/lib/core/seleniumRunner.js +1 -2
- package/lib/safari/safariInspectorClient.js +0 -1
- package/lib/screenshot/index.js +1 -1
- package/lib/support/browserScript.js +2 -4
- package/lib/support/cli.js +56 -21
- package/lib/support/har/index.js +6 -3
- package/lib/support/helpTopics.js +174 -0
- package/lib/support/util.js +46 -0
- package/lib/video/postprocessing/finetune/addTextToVideo.js +1 -1
- package/package.json +16 -15
- package/scripting.d.ts +21 -0
- package/types/android/index.d.ts +2 -2
- package/types/android/index.d.ts.map +1 -1
- package/types/core/engine/command/measure.d.ts +6 -6
- package/types/core/engine/command/measure.d.ts.map +1 -1
- package/types/core/engine/command/simpleperf.d.ts +1 -1
- package/types/core/engine/command/simpleperf.d.ts.map +1 -1
- package/types/core/engine/commands.d.ts +51 -48
- package/types/core/engine/commands.d.ts.map +1 -1
- package/types/core/engine/context.d.ts +9 -8
- package/types/core/engine/context.d.ts.map +1 -1
- package/types/support/tcpdump.d.ts +1 -1
- package/types/support/tcpdump.d.ts.map +1 -1
- package/types/support/util.d.ts +5 -0
- package/types/support/util.d.ts.map +1 -1
- package/types/video/postprocessing/finetune/addTextToVideo.d.ts +1 -1
- package/types/video/postprocessing/finetune/addTextToVideo.d.ts.map +1 -1
- package/types/video/postprocessing/finetune/convertFps.d.ts +1 -1
- package/types/video/postprocessing/finetune/convertFps.d.ts.map +1 -1
- package/types/video/postprocessing/finetune/removeOrange.d.ts +1 -1
- package/types/video/postprocessing/finetune/removeOrange.d.ts.map +1 -1
- package/types/video/postprocessing/visualmetrics/visualMetrics.d.ts +1 -1
- package/types/video/postprocessing/visualmetrics/visualMetrics.d.ts.map +1 -1
- package/types/video/screenRecording/desktop/convert.d.ts +1 -1
- package/types/video/screenRecording/desktop/convert.d.ts.map +1 -1
- package/types/video/screenRecording/desktop/desktopRecorder.d.ts +2 -2
- package/types/video/screenRecording/desktop/ffmpegRecorder.d.ts +1 -1
- package/types/video/screenRecording/desktop/osx/getSPDisplaysDataType.d.ts +1 -1
- package/types/video/screenRecording/desktop/osx/getSPDisplaysDataType.d.ts.map +1 -1
- package/types/video/screenRecording/desktop/osx/getScreen.d.ts +1 -1
- package/types/video/screenRecording/desktop/osx/getScreen.d.ts.map +1 -1
- package/types/video/screenRecording/iosSimulator/convertToMp4.d.ts +1 -1
- package/types/video/screenRecording/iosSimulator/convertToMp4.d.ts.map +1 -1
- package/types/video/screenRecording/iosSimulator/recorder.d.ts +2 -6
- package/types/video/screenRecording/iosSimulator/recorder.d.ts.map +1 -1
- package/types/scripting.d.ts +0 -2
package/scripting.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Context } from './types/core/engine/context.js';
|
|
2
|
+
import type { Commands } from './types/core/engine/commands.js';
|
|
3
|
+
|
|
4
|
+
export { Context as BrowsertimeContext } from './types/core/engine/context.js';
|
|
5
|
+
export { Commands as BrowsertimeCommands } from './types/core/engine/commands.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Signature of a Browsertime user script. Annotate the default export of
|
|
9
|
+
* your script with this type to get full IntelliSense on `context` and
|
|
10
|
+
* `commands`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* /** @type {import('browsertime').BrowsertimeScript} *\/
|
|
14
|
+
* export default async function (context, commands) {
|
|
15
|
+
* await commands.measure.start('https://example.org');
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export type BrowsertimeScript = (
|
|
19
|
+
context: Context,
|
|
20
|
+
commands: Commands
|
|
21
|
+
) => Promise<unknown>;
|
package/types/android/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export class Android {
|
|
|
33
33
|
}>;
|
|
34
34
|
pullNetLog(destination: any): Promise<any>;
|
|
35
35
|
addDevtoolsFw(): Promise<any>;
|
|
36
|
-
removeDevtoolsFw(): Promise<
|
|
36
|
+
removeDevtoolsFw(): Promise<any>;
|
|
37
37
|
startVideo(): Promise<any>;
|
|
38
38
|
ping(address: any): Promise<boolean>;
|
|
39
39
|
clickPowerButton(): Promise<any>;
|
|
@@ -41,7 +41,7 @@ export class Android {
|
|
|
41
41
|
closeAppNotRespondingPopup(): Promise<any>;
|
|
42
42
|
pressHomeButton(): Promise<any>;
|
|
43
43
|
stopVideo(): Promise<any>;
|
|
44
|
-
getPhoneState(): Promise<
|
|
44
|
+
getPhoneState(): Promise<any>;
|
|
45
45
|
pullVideo(destinationPath: any): Promise<any>;
|
|
46
46
|
removeVideo(): Promise<any>;
|
|
47
47
|
pidof(packageName: any): Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/android/index.js"],"names":[],"mappings":"AAqlBA,2DAWC;AAjlBD;IACE,0BAwBC;IAfC,YAAgC;IAEhC,QAIC;IACD,UAAgC;IAGhC,6BAA6B;IAC7B,yBAA2B;IAC3B,eAAgC;IAKlC,uBAgBC;IALC,YAA4C;IAG1C,YAAoE;IAIxE,wCAEC;IAED,8CAIC;IAED,6CAIC;IAED,2CAUC;IAED,mEAYC;IAED,iEAGC;IAED,mEAcC;IAED,uCAEC;IAED,0CAGC;IAED,4CAMC;IAED,4CAMC;IAED,uBAGC;IAED,kCAOC;IAED;;;;;;;OAuBC;IAED,2CAKC;IAED,8BAKC;IAED,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/android/index.js"],"names":[],"mappings":"AAqlBA,2DAWC;AAjlBD;IACE,0BAwBC;IAfC,YAAgC;IAEhC,QAIC;IACD,UAAgC;IAGhC,6BAA6B;IAC7B,yBAA2B;IAC3B,eAAgC;IAKlC,uBAgBC;IALC,YAA4C;IAG1C,YAAoE;IAIxE,wCAEC;IAED,8CAIC;IAED,6CAIC;IAED,2CAUC;IAED,mEAYC;IAED,iEAGC;IAED,mEAcC;IAED,uCAEC;IAED,0CAGC;IAED,4CAMC;IAED,4CAMC;IAED,uBAGC;IAED,kCAOC;IAED;;;;;;;OAuBC;IAED,2CAKC;IAED,8BAKC;IAED,iCAuBC;IAED,2BAIC;IAED,qCAGC;IAED,iCAGC;IAED,wBASC;IAED,2CAOC;IAED,gCAEC;IAED,0BAIC;IAED,8BAGC;IAED,8CAIC;IAED,4BAEC;IAED,sCAYC;IAED,mDAsBC;IAED,gDA+CC;IAED;;;;;;;OAqDC;IAED,4DAQC;IAED,mCAcC;IAED,kCAQC;IAED,iCAIC;IAED;;;;OAGC;IAED;;;OAEC;IAED,6GAaC;CACF"}
|
|
@@ -144,10 +144,10 @@ export class Measure {
|
|
|
144
144
|
*
|
|
145
145
|
* @async
|
|
146
146
|
* @param {string} errorMessage - The message about the error. This will end up on the HTML report for sitespeed.io so give it a good message so you know what's gone wrong.
|
|
147
|
-
* @returns {Promise} A promise that resolves when the stop process has completed.
|
|
147
|
+
* @returns {Promise<void>} A promise that resolves when the stop process has completed.
|
|
148
148
|
* @since 21.2.0
|
|
149
149
|
*/
|
|
150
|
-
stopAsError(errorMessage: string): Promise<
|
|
150
|
+
stopAsError(errorMessage: string): Promise<void>;
|
|
151
151
|
/**
|
|
152
152
|
* @private
|
|
153
153
|
*/
|
|
@@ -161,10 +161,10 @@ export class Measure {
|
|
|
161
161
|
* @async
|
|
162
162
|
* @param {string} alias - The friendly name for this measurement.
|
|
163
163
|
* @param {string} selector - The CSS selector of the element to click.
|
|
164
|
-
* @returns {Promise} A promise that resolves with the collected metrics data.
|
|
164
|
+
* @returns {Promise<unknown>} A promise that resolves with the collected metrics data.
|
|
165
165
|
* @throws {Error} Throws an error if the element is not found or the measurement fails.
|
|
166
166
|
*/
|
|
167
|
-
clickAndMeasure(alias: string, selector: string): Promise<
|
|
167
|
+
clickAndMeasure(alias: string, selector: string): Promise<unknown>;
|
|
168
168
|
/**
|
|
169
169
|
* Stops the measurement process, collects metrics, and handles any post-measurement tasks.
|
|
170
170
|
* It finalizes the URL being tested, manages any URL-specific metadata, stops any ongoing video recordings,
|
|
@@ -173,9 +173,9 @@ export class Measure {
|
|
|
173
173
|
* @async
|
|
174
174
|
* @param {string} testedStartUrl - The URL that was initially tested. If not provided, it will be obtained from the browser.
|
|
175
175
|
* @throws {Error} Throws an error if there are issues in stopping the measurement or collecting data.
|
|
176
|
-
* @returns {Promise} A promise that resolves with the collected metrics data.
|
|
176
|
+
* @returns {Promise<unknown>} A promise that resolves with the collected metrics data.
|
|
177
177
|
*/
|
|
178
|
-
stop(testedStartUrl: string): Promise<
|
|
178
|
+
stop(testedStartUrl: string): Promise<unknown>;
|
|
179
179
|
/**
|
|
180
180
|
* Adds a custom metric to the current measurement result.
|
|
181
181
|
* The metric will be attached to the latest tested page, meaming
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/measure.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/measure.js"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH;IACE;;;;;;;;;;;;;;OAgGC;IAjFC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,cAAkB;IAClB;;OAEG;IACH,eAAoB;IACpB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,+BAAoD;IACpD;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,8BAA8B;IAC9B;;OAEG;IACH,6BAA6B;IAC7B;;OAEG;IACH,uBAA2B;IAC3B;;OAEG;IACH,mBAAoB;IACpB;;OAEG;IACH,gBAA6D;IAC7D;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,oBAIC;IAGH;;;OAGG;IACH,eAyBC;IAED;;;OAGG;IACH,iBAQC;IAED;;;;;;;;;;;;OAYG;IACH,kBAmBC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBALW,MAAM,kBACN,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CA2FzB;IAED;;;;;;;;OAQG;IACH,0BAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAgBzB;IAED;;OAEG;IACH,iBAEC;IADC,YAAmB;IAGrB;;;;;;;;;;OAUG;IACH,uBALW,MAAM,YACN,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAO5B;IAED;;;;;;;;;OASG;IACH,qBAJW,MAAM,GAEJ,OAAO,CAAC,OAAO,CAAC,CAuE5B;IAED;;;;;;;;OAQG;IACH,UAJW,MAAM,SACN,GAAC,QAWX;IAED;;;;;;;;;OASG;IACH,6BAOC;IAED;;OAEG;IACH,sBAYC;IAED;;OAEG;IACH,6BAQC;IAED;;OAEG;IACH,+BAaC;IAED;;OAEG;IACH,2BAkBC;IAED;;OAEG;IACH,mCAqBC;IAED;;OAEG;IACH,2BAIC;IAED;;OAEG;IACH,iBA2BC;CACF"}
|
|
@@ -30,7 +30,7 @@ export class SimplePerfProfiler {
|
|
|
30
30
|
start(profilerOptions?: any[], recordOptions?: string, dirName?: string): Promise<void>;
|
|
31
31
|
profilerOptions: any[];
|
|
32
32
|
dataDir: any;
|
|
33
|
-
simpleperfProcess:
|
|
33
|
+
simpleperfProcess: any;
|
|
34
34
|
/**
|
|
35
35
|
* Stop Simpleperf profiling.
|
|
36
36
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simpleperf.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/simpleperf.js"],"names":[],"mappings":"AA0CA;IACE,yEAqBC;IApBC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,cAAkB;IAClB;;OAEG;IACH,gBAAoB;IAGtB;;;;;;OAMG;IAEH,0EAJa,OAAO,CAAC,IAAI,CAAC,CA6EzB;IA1DC,uBAAsC;IAUlC,aAAkE;IAwBtE,
|
|
1
|
+
{"version":3,"file":"simpleperf.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/simpleperf.js"],"names":[],"mappings":"AA0CA;IACE,yEAqBC;IApBC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,cAAkB;IAClB;;OAEG;IACH,gBAAoB;IAGtB;;;;;;OAMG;IAEH,0EAJa,OAAO,CAAC,IAAI,CAAC,CA6EzB;IA1DC,uBAAsC;IAUlC,aAAkE;IAwBtE,uBAAyC;IA0B3C;;;;;;;OAOG;IACH,QAJa,OAAO,CAAC,IAAI,CAAC,CA8CzB;CACF"}
|
|
@@ -89,12 +89,12 @@ export class Commands {
|
|
|
89
89
|
* Navigates to a specified URL and handles additional setup for a page visit.
|
|
90
90
|
* @async
|
|
91
91
|
* @example await commands.navigate('https://www.example.org');
|
|
92
|
-
* @type {Function}
|
|
93
92
|
* @param {string} url - The URL to navigate to.
|
|
94
93
|
* @throws {Error} Throws an error if navigation or setup fails.
|
|
95
94
|
* @returns {Promise<void>} A promise that resolves when the navigation and setup are
|
|
95
|
+
* @type {(url: string) => Promise<void>}
|
|
96
96
|
*/
|
|
97
|
-
navigate:
|
|
97
|
+
navigate: (url: string) => Promise<void>;
|
|
98
98
|
/**
|
|
99
99
|
* Provides functionality to control browser navigation such as back, forward, and refresh actions.
|
|
100
100
|
* @type {Navigation}
|
|
@@ -104,16 +104,16 @@ export class Commands {
|
|
|
104
104
|
* Add a text that will be an error attached to the current page.
|
|
105
105
|
* @example await commands.error('My error message');
|
|
106
106
|
* @param {string} message - The error message.
|
|
107
|
-
* @type {
|
|
107
|
+
* @type {(message: string) => void}
|
|
108
108
|
*/
|
|
109
|
-
error:
|
|
109
|
+
error: (message: string) => void;
|
|
110
110
|
/**
|
|
111
111
|
* Mark this run as an failure. Add a message that explains the failure.
|
|
112
112
|
* @example await commands.markAsFailure('My failure message');
|
|
113
113
|
* @param {string} message - The message attached as a failure
|
|
114
|
-
* @type {
|
|
114
|
+
* @type {(message: string) => void}
|
|
115
115
|
*/
|
|
116
|
-
markAsFailure:
|
|
116
|
+
markAsFailure: (message: string) => void;
|
|
117
117
|
/**
|
|
118
118
|
* Executes JavaScript in the browser context.
|
|
119
119
|
* @type {JavaScript}
|
|
@@ -182,11 +182,23 @@ export class Commands {
|
|
|
182
182
|
* @type {Debug}
|
|
183
183
|
*/
|
|
184
184
|
debug: Debug;
|
|
185
|
+
/**
|
|
186
|
+
* Interact with the page using the mouse.
|
|
187
|
+
* @type {{
|
|
188
|
+
* moveTo: (selector: string) => Promise<void>,
|
|
189
|
+
* singleClick: (selector: string, mouseOptions?: { waitForNavigation?: boolean }) => Promise<void>,
|
|
190
|
+
* doubleClick: (selector: string) => Promise<void>,
|
|
191
|
+
* contextClick: (selector: string) => Promise<void>,
|
|
192
|
+
* clickAndHold: ClickAndHold
|
|
193
|
+
* }}
|
|
194
|
+
*/
|
|
185
195
|
mouse: {
|
|
186
|
-
moveTo: (selector:
|
|
187
|
-
singleClick: (selector:
|
|
188
|
-
|
|
189
|
-
|
|
196
|
+
moveTo: (selector: string) => Promise<void>;
|
|
197
|
+
singleClick: (selector: string, mouseOptions?: {
|
|
198
|
+
waitForNavigation?: boolean;
|
|
199
|
+
}) => Promise<void>;
|
|
200
|
+
doubleClick: (selector: string) => Promise<void>;
|
|
201
|
+
contextClick: (selector: string) => Promise<void>;
|
|
190
202
|
clickAndHold: ClickAndHold;
|
|
191
203
|
};
|
|
192
204
|
/**
|
|
@@ -215,9 +227,8 @@ export class Commands {
|
|
|
215
227
|
* @param {string} text - The text to type into the element.
|
|
216
228
|
* @returns {Promise<void>} A promise that resolves when the text has been added.
|
|
217
229
|
* @throws {Error} Throws an error if the element is not found.
|
|
218
|
-
* @type {Function}
|
|
219
230
|
*/
|
|
220
|
-
type:
|
|
231
|
+
type: (selector: string, text: string) => Promise<void>;
|
|
221
232
|
element: Element;
|
|
222
233
|
/**
|
|
223
234
|
* Finds an element using a CSS selector, with optional waiting and visibility check.
|
|
@@ -229,9 +240,12 @@ export class Commands {
|
|
|
229
240
|
* @param {boolean} [options.visible=false] - If true, waits for the element to be visible.
|
|
230
241
|
* @returns {Promise<WebElement>} A promise that resolves to the WebElement found.
|
|
231
242
|
* @throws {Error} Throws an error if the element is not found.
|
|
232
|
-
* @type {
|
|
243
|
+
* @type {(selector: string, options?: { timeout?: number, visible?: boolean }) => Promise<import('selenium-webdriver').WebElement>}
|
|
233
244
|
*/
|
|
234
|
-
find:
|
|
245
|
+
find: (selector: string, options?: {
|
|
246
|
+
timeout?: number;
|
|
247
|
+
visible?: boolean;
|
|
248
|
+
}) => Promise<import("selenium-webdriver").WebElement>;
|
|
235
249
|
/**
|
|
236
250
|
* Checks if an element matching the selector exists in the DOM.
|
|
237
251
|
* Unlike find(), this does not throw if the element is not found.
|
|
@@ -244,9 +258,10 @@ export class Commands {
|
|
|
244
258
|
* @param {Object} [existsOptions] - Options.
|
|
245
259
|
* @param {number} [existsOptions.timeout=0] - Maximum time to wait for the element. Default 0 (no wait).
|
|
246
260
|
* @returns {Promise<boolean>} True if the element exists.
|
|
247
|
-
* @type {Function}
|
|
248
261
|
*/
|
|
249
|
-
exists:
|
|
262
|
+
exists: (selector: string, existsOptions?: {
|
|
263
|
+
timeout?: number;
|
|
264
|
+
}) => Promise<boolean>;
|
|
250
265
|
/**
|
|
251
266
|
* Gets the visible text of an element matching the selector.
|
|
252
267
|
* @async
|
|
@@ -255,9 +270,8 @@ export class Commands {
|
|
|
255
270
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
256
271
|
* @returns {Promise<string>} The visible text content.
|
|
257
272
|
* @throws {Error} Throws an error if the element is not found.
|
|
258
|
-
* @type {Function}
|
|
259
273
|
*/
|
|
260
|
-
getText:
|
|
274
|
+
getText: (selector: string) => Promise<string>;
|
|
261
275
|
/**
|
|
262
276
|
* Gets the value of a form element matching the selector.
|
|
263
277
|
* @async
|
|
@@ -266,9 +280,8 @@ export class Commands {
|
|
|
266
280
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
267
281
|
* @returns {Promise<string>} The element's value.
|
|
268
282
|
* @throws {Error} Throws an error if the element is not found.
|
|
269
|
-
* @type {Function}
|
|
270
283
|
*/
|
|
271
|
-
getValue:
|
|
284
|
+
getValue: (selector: string) => Promise<string>;
|
|
272
285
|
/**
|
|
273
286
|
* Checks if an element matching the selector is visible/displayed.
|
|
274
287
|
* @async
|
|
@@ -276,9 +289,8 @@ export class Commands {
|
|
|
276
289
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
277
290
|
* @returns {Promise<boolean>} True if the element is visible.
|
|
278
291
|
* @throws {Error} Throws an error if the element is not found.
|
|
279
|
-
* @type {Function}
|
|
280
292
|
*/
|
|
281
|
-
isVisible:
|
|
293
|
+
isVisible: (selector: string) => Promise<boolean>;
|
|
282
294
|
/**
|
|
283
295
|
* Gets an attribute value of an element matching the selector.
|
|
284
296
|
* @async
|
|
@@ -288,9 +300,8 @@ export class Commands {
|
|
|
288
300
|
* @param {string} attribute - The attribute name.
|
|
289
301
|
* @returns {Promise<string>} The attribute value.
|
|
290
302
|
* @throws {Error} Throws an error if the element is not found.
|
|
291
|
-
* @type {Function}
|
|
292
303
|
*/
|
|
293
|
-
getAttribute:
|
|
304
|
+
getAttribute: (selector: string, attribute: string) => Promise<string>;
|
|
294
305
|
/**
|
|
295
306
|
* Checks if a form element matching the selector is enabled.
|
|
296
307
|
* @async
|
|
@@ -298,9 +309,8 @@ export class Commands {
|
|
|
298
309
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
299
310
|
* @returns {Promise<boolean>} True if the element is enabled.
|
|
300
311
|
* @throws {Error} Throws an error if the element is not found.
|
|
301
|
-
* @type {Function}
|
|
302
312
|
*/
|
|
303
|
-
isEnabled:
|
|
313
|
+
isEnabled: (selector: string) => Promise<boolean>;
|
|
304
314
|
/**
|
|
305
315
|
* Checks if a checkbox or radio button is selected/checked.
|
|
306
316
|
* @async
|
|
@@ -308,9 +318,8 @@ export class Commands {
|
|
|
308
318
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
309
319
|
* @returns {Promise<boolean>} True if the element is checked/selected.
|
|
310
320
|
* @throws {Error} Throws an error if the element is not found.
|
|
311
|
-
* @type {Function}
|
|
312
321
|
*/
|
|
313
|
-
isChecked:
|
|
322
|
+
isChecked: (selector: string) => Promise<boolean>;
|
|
314
323
|
/**
|
|
315
324
|
* Clears the content of a form element matching the selector.
|
|
316
325
|
* @async
|
|
@@ -319,9 +328,8 @@ export class Commands {
|
|
|
319
328
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
320
329
|
* @returns {Promise<void>} A promise that resolves when the element is cleared.
|
|
321
330
|
* @throws {Error} Throws an error if the element is not found.
|
|
322
|
-
* @type {Function}
|
|
323
331
|
*/
|
|
324
|
-
clear:
|
|
332
|
+
clear: (selector: string) => Promise<void>;
|
|
325
333
|
/**
|
|
326
334
|
* Fills multiple form fields at once. Each key is a selector, each value is the text to type.
|
|
327
335
|
* @async
|
|
@@ -334,9 +342,10 @@ export class Commands {
|
|
|
334
342
|
* @param {Object<string, string>} fields - An object mapping selectors to values.
|
|
335
343
|
* @returns {Promise<void>} A promise that resolves when all fields are filled.
|
|
336
344
|
* @throws {Error} Throws an error if any element is not found.
|
|
337
|
-
* @type {Function}
|
|
338
345
|
*/
|
|
339
|
-
fill:
|
|
346
|
+
fill: (fields: {
|
|
347
|
+
[x: string]: string;
|
|
348
|
+
}) => Promise<void>;
|
|
340
349
|
/**
|
|
341
350
|
* Hovers over an element matching the selector. This is a convenience
|
|
342
351
|
* alias for commands.mouse.moveTo(selector).
|
|
@@ -346,9 +355,8 @@ export class Commands {
|
|
|
346
355
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
347
356
|
* @returns {Promise<void>}
|
|
348
357
|
* @throws {Error} Throws an error if the element is not found.
|
|
349
|
-
* @type {Function}
|
|
350
358
|
*/
|
|
351
|
-
hover:
|
|
359
|
+
hover: (selector: string) => Promise<void>;
|
|
352
360
|
/**
|
|
353
361
|
* Presses a keyboard key. Use key names like 'Enter', 'Tab', 'Escape',
|
|
354
362
|
* 'Backspace', 'ArrowUp', 'ArrowDown', etc.
|
|
@@ -358,25 +366,22 @@ export class Commands {
|
|
|
358
366
|
* @example await commands.press('Escape');
|
|
359
367
|
* @param {string} key - The key name to press (e.g. 'Enter', 'Tab', 'Escape').
|
|
360
368
|
* @returns {Promise<void>}
|
|
361
|
-
* @type {Function}
|
|
362
369
|
*/
|
|
363
|
-
press:
|
|
370
|
+
press: (key: string) => Promise<void>;
|
|
364
371
|
/**
|
|
365
372
|
* Gets the title of the current page.
|
|
366
373
|
* @async
|
|
367
374
|
* @example const title = await commands.getTitle();
|
|
368
375
|
* @returns {Promise<string>} The page title.
|
|
369
|
-
* @type {Function}
|
|
370
376
|
*/
|
|
371
|
-
getTitle:
|
|
377
|
+
getTitle: () => Promise<string>;
|
|
372
378
|
/**
|
|
373
379
|
* Gets the URL of the current page.
|
|
374
380
|
* @async
|
|
375
381
|
* @example const url = await commands.getUrl();
|
|
376
382
|
* @returns {Promise<string>} The current URL.
|
|
377
|
-
* @type {Function}
|
|
378
383
|
*/
|
|
379
|
-
getUrl:
|
|
384
|
+
getUrl: () => Promise<string>;
|
|
380
385
|
/**
|
|
381
386
|
* Checks a checkbox or radio button. Does nothing if already checked.
|
|
382
387
|
* @async
|
|
@@ -385,9 +390,8 @@ export class Commands {
|
|
|
385
390
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
386
391
|
* @returns {Promise<void>}
|
|
387
392
|
* @throws {Error} Throws an error if the element is not found.
|
|
388
|
-
* @type {Function}
|
|
389
393
|
*/
|
|
390
|
-
check:
|
|
394
|
+
check: (selector: string) => Promise<void>;
|
|
391
395
|
/**
|
|
392
396
|
* Unchecks a checkbox. Does nothing if already unchecked.
|
|
393
397
|
* @async
|
|
@@ -396,9 +400,8 @@ export class Commands {
|
|
|
396
400
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
397
401
|
* @returns {Promise<void>}
|
|
398
402
|
* @throws {Error} Throws an error if the element is not found.
|
|
399
|
-
* @type {Function}
|
|
400
403
|
*/
|
|
401
|
-
uncheck:
|
|
404
|
+
uncheck: (selector: string) => Promise<void>;
|
|
402
405
|
/**
|
|
403
406
|
* Scrolls the page so that the element matching the selector is visible in the viewport.
|
|
404
407
|
* @async
|
|
@@ -407,9 +410,8 @@ export class Commands {
|
|
|
407
410
|
* @param {string} selector - The CSS selector or prefixed selector.
|
|
408
411
|
* @returns {Promise<void>}
|
|
409
412
|
* @throws {Error} Throws an error if the element is not found.
|
|
410
|
-
* @type {Function}
|
|
411
413
|
*/
|
|
412
|
-
scrollIntoView:
|
|
414
|
+
scrollIntoView: (selector: string) => Promise<void>;
|
|
413
415
|
/**
|
|
414
416
|
* Waits until the browser's current URL contains the given string.
|
|
415
417
|
* Useful after form submissions, login redirects, or SPA navigation.
|
|
@@ -421,9 +423,10 @@ export class Commands {
|
|
|
421
423
|
* @param {number} [urlOptions.timeout=10000] - Maximum time to wait in milliseconds.
|
|
422
424
|
* @returns {Promise<void>}
|
|
423
425
|
* @throws {Error} Throws an error if the URL does not match within the timeout.
|
|
424
|
-
* @type {Function}
|
|
425
426
|
*/
|
|
426
|
-
waitForUrl:
|
|
427
|
+
waitForUrl: (pattern: string, urlOptions?: {
|
|
428
|
+
timeout?: number;
|
|
429
|
+
}) => Promise<void>;
|
|
427
430
|
}
|
|
428
431
|
import { PerfettoTrace } from './command/perfetto.js';
|
|
429
432
|
import { SimplePerfProfiler } from './command/simpleperf.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../lib/core/engine/commands.js"],"names":[],"mappings":"AAqCA;;;GAGG;AACH;IACE;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../lib/core/engine/commands.js"],"names":[],"mappings":"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"}
|
|
@@ -20,14 +20,14 @@ export class Context {
|
|
|
20
20
|
constructor(options: any, result: any, log: any, storageManager: any, index: any, webdriver: any, instantiatedDriver: any);
|
|
21
21
|
/**
|
|
22
22
|
* This is the yargs object you get from the cli. If you add --my.id you can get that using options.my.id.
|
|
23
|
-
* @type {
|
|
23
|
+
* @type {Record<string, any>}
|
|
24
24
|
*/
|
|
25
|
-
options: any
|
|
25
|
+
options: Record<string, any>;
|
|
26
26
|
/**
|
|
27
27
|
* Here the result from each run is stored.
|
|
28
|
-
* @type {
|
|
28
|
+
* @type {Record<string, any>}
|
|
29
29
|
*/
|
|
30
|
-
result: any
|
|
30
|
+
result: Record<string, any>;
|
|
31
31
|
/**
|
|
32
32
|
* @type {Logger}
|
|
33
33
|
*/
|
|
@@ -43,17 +43,18 @@ export class Context {
|
|
|
43
43
|
*/
|
|
44
44
|
storageManager: import("../../support/storageManager.js").StorageManager;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Scratch space shared between commands within a single iteration.
|
|
47
|
+
* @type {Record<string, any>}
|
|
47
48
|
*/
|
|
48
|
-
taskData: any
|
|
49
|
+
taskData: Record<string, any>;
|
|
49
50
|
/**
|
|
50
51
|
* Get raw Selenium functionality.
|
|
51
52
|
* @see https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/index.html
|
|
52
53
|
* @type {{webdriver: WebDriverClass, driver: WebDriverInstance}}
|
|
53
54
|
*/
|
|
54
55
|
selenium: {
|
|
55
|
-
webdriver:
|
|
56
|
-
driver:
|
|
56
|
+
webdriver: WebDriverClass;
|
|
57
|
+
driver: WebDriverInstance;
|
|
57
58
|
};
|
|
58
59
|
}
|
|
59
60
|
export type Logger = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../lib/core/engine/context.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AAEH;;;;GAIG;AACH;IACE,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../lib/core/engine/context.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AAEH;;;;GAIG;AACH;IACE,2HAqDC;IA5CC;;;OAGG;IACH,SAFU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAEP;IAEtB;;;OAGG;IACH,QAFU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAET;IAEpB;;OAEG;IACH,KAFU,MAAM,CAEF;IAEd;;;OAGG;IACH,OAFU,MAAM,CAEE;IAElB;;;OAGG;IACH,gBAFU,OAAO,iCAAiC,EAAE,cAAc,CAE9B;IAEpC;;;OAGG;IACH,UAFU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAEX;IAElB;;;;OAIG;IACH,UAFU;QAAC,SAAS,EAAE,cAAc,CAAC;QAAC,MAAM,EAAE,iBAAiB,CAAA;KAAC,CAK/D;CAEJ;;;;;WAzEa,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;;;;aACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;;;;UACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;;;;UACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;;;;WACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;;;;cACtB,CAAS,IAAM,EAAN,MAAM,KAAG,IAAI;;6BAIvB,cAAc,oBAAoB,CAAC;gCACnC,OAAO,oBAAoB,EAAE,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcpdump.d.ts","sourceRoot":"","sources":["../../lib/support/tcpdump.js"],"names":[],"mappings":"AAKA;IACE,0CAGC;IAFC,aAAwB;IACxB,aAAsB;IAExB,qCAsBC;IADC,
|
|
1
|
+
{"version":3,"file":"tcpdump.d.ts","sourceRoot":"","sources":["../../lib/support/tcpdump.js"],"names":[],"mappings":"AAKA;IACE,0CAGC;IAFC,aAAwB;IACxB,aAAsB;IAExB,qCAsBC;IADC,oBAA+C;IAEjD,sBAKC;IAED,4CAQC;CACF"}
|
package/types/support/util.d.ts
CHANGED
|
@@ -13,4 +13,9 @@ export function setProperty(object: any, path: any, value: any): void;
|
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
export function getProperty(object: any, path: any, defaultValue: any): any;
|
|
16
|
+
/**
|
|
17
|
+
* A replacement for lodash.merge(target, ...sources).
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export function merge(target: any, ...sources: any[]): any;
|
|
16
21
|
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../lib/support/util.js"],"names":[],"mappings":"AAGA,oGAeC;AACD,qDA2LC;AACD,+CAQC;AACD,gEAeC;AACD,gEAsBC;AACD,0HAWC;AAED,oCAmBC;AAED,8CAWC;AAED,6CAsBC;AAcD,sEAsBC;AAED;;;GAGG;AACH,4EAuBC"}
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../lib/support/util.js"],"names":[],"mappings":"AAGA,oGAeC;AACD,qDA2LC;AACD,+CAQC;AACD,gEAeC;AACD,gEAsBC;AACD,0HAWC;AAED,oCAmBC;AAED,8CAWC;AAED,6CAsBC;AAcD,sEAsBC;AAED;;;GAGG;AACH,4EAuBC;AAmCD;;;GAGG;AACH,2DAOC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function addTextToVideo(inputFile: any, outputFile: any, videoMetrics: any, timingMetrics: any, options: any): Promise<
|
|
1
|
+
export function addTextToVideo(inputFile: any, outputFile: any, videoMetrics: any, timingMetrics: any, options: any): Promise<any>;
|
|
2
2
|
//# sourceMappingURL=addTextToVideo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addTextToVideo.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/finetune/addTextToVideo.js"],"names":[],"mappings":"AAgBA,
|
|
1
|
+
{"version":3,"file":"addTextToVideo.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/finetune/addTextToVideo.js"],"names":[],"mappings":"AAgBA,mIAqCC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function convert(source: any, destination: any, framerate: any): Promise<
|
|
1
|
+
export function convert(source: any, destination: any, framerate: any): Promise<any>;
|
|
2
2
|
//# sourceMappingURL=convertFps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertFps.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/finetune/convertFps.js"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"convertFps.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/finetune/convertFps.js"],"names":[],"mappings":"AAIA,qFAWC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function removeOrange(inputFile: any, outputFile: any, newStart: any, visualMetrics: any, options: any): Promise<
|
|
1
|
+
export function removeOrange(inputFile: any, outputFile: any, newStart: any, visualMetrics: any, options: any): Promise<any>;
|
|
2
2
|
//# sourceMappingURL=removeOrange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeOrange.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/finetune/removeOrange.js"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"removeOrange.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/finetune/removeOrange.js"],"names":[],"mappings":"AAIA,6HAkBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function checkDependencies(): Promise<
|
|
1
|
+
export function checkDependencies(): Promise<any>;
|
|
2
2
|
export function run(videoPath: any, imageDirPath: any, elementsFile: any, videoDir: any, index: any, pageNumber: any, visitedPageNumber: any, options: any): Promise<any>;
|
|
3
3
|
//# sourceMappingURL=visualMetrics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visualMetrics.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/visualmetrics/visualMetrics.js"],"names":[],"mappings":"AAoBA,
|
|
1
|
+
{"version":3,"file":"visualMetrics.d.ts","sourceRoot":"","sources":["../../../../lib/video/postprocessing/visualmetrics/visualMetrics.js"],"names":[],"mappings":"AAoBA,kDAKC;AACD,0KAqIC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function convert(source: any, destination: any, crf: any, threads: any): Promise<
|
|
1
|
+
export function convert(source: any, destination: any, crf: any, threads: any): Promise<any>;
|
|
2
2
|
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../../lib/video/screenRecording/desktop/convert.js"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../../../../lib/video/screenRecording/desktop/convert.js"],"names":[],"mappings":"AAIA,6FAwBC"}
|
|
@@ -16,12 +16,12 @@ export class DesktopRecorder {
|
|
|
16
16
|
options: any;
|
|
17
17
|
start(file: any): Promise<{
|
|
18
18
|
filePath: any;
|
|
19
|
-
ffmpegProcess:
|
|
19
|
+
ffmpegProcess: any;
|
|
20
20
|
}>;
|
|
21
21
|
filePath: any;
|
|
22
22
|
recording: Promise<{
|
|
23
23
|
filePath: any;
|
|
24
|
-
ffmpegProcess:
|
|
24
|
+
ffmpegProcess: any;
|
|
25
25
|
}>;
|
|
26
26
|
stop(destination: any): Promise<void>;
|
|
27
27
|
}
|
|
@@ -11,7 +11,7 @@ export function start({ display, origin, size, filePath, offset, framerate, crf,
|
|
|
11
11
|
taskset: any;
|
|
12
12
|
}): Promise<{
|
|
13
13
|
filePath: any;
|
|
14
|
-
ffmpegProcess:
|
|
14
|
+
ffmpegProcess: any;
|
|
15
15
|
}>;
|
|
16
16
|
export function stop(recording: any): Promise<any>;
|
|
17
17
|
//# sourceMappingURL=ffmpegRecorder.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function getSPDisplaysDataType(): Promise<
|
|
1
|
+
export function getSPDisplaysDataType(): Promise<any>;
|
|
2
2
|
//# sourceMappingURL=getSPDisplaysDataType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSPDisplaysDataType.d.ts","sourceRoot":"","sources":["../../../../../lib/video/screenRecording/desktop/osx/getSPDisplaysDataType.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"getSPDisplaysDataType.d.ts","sourceRoot":"","sources":["../../../../../lib/video/screenRecording/desktop/osx/getSPDisplaysDataType.js"],"names":[],"mappings":"AAEA,sDAKC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function getScreenOnOSX(): Promise<
|
|
1
|
+
export function getScreenOnOSX(): Promise<any>;
|
|
2
2
|
//# sourceMappingURL=getScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getScreen.d.ts","sourceRoot":"","sources":["../../../../../lib/video/screenRecording/desktop/osx/getScreen.js"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"getScreen.d.ts","sourceRoot":"","sources":["../../../../../lib/video/screenRecording/desktop/osx/getScreen.js"],"names":[],"mappings":"AAIA,+CA0BC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function convert(source: any, destination: any): Promise<
|
|
1
|
+
export function convert(source: any, destination: any): Promise<any>;
|
|
2
2
|
//# sourceMappingURL=convertToMp4.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToMp4.d.ts","sourceRoot":"","sources":["../../../../lib/video/screenRecording/iosSimulator/convertToMp4.js"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"convertToMp4.d.ts","sourceRoot":"","sources":["../../../../lib/video/screenRecording/iosSimulator/convertToMp4.js"],"names":[],"mappings":"AAIA,qEAiBC"}
|
|
@@ -3,11 +3,7 @@ export class IOSSimulatorRecorder {
|
|
|
3
3
|
options: any;
|
|
4
4
|
tmpVideo: string;
|
|
5
5
|
start(): Promise<void>;
|
|
6
|
-
xcrunProcess:
|
|
7
|
-
|
|
8
|
-
}>;
|
|
9
|
-
stop(destination: any): Promise<import("execa").Result<{
|
|
10
|
-
shell: true;
|
|
11
|
-
}>>;
|
|
6
|
+
xcrunProcess: any;
|
|
7
|
+
stop(destination: any): Promise<any>;
|
|
12
8
|
}
|
|
13
9
|
//# sourceMappingURL=recorder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["../../../../lib/video/screenRecording/iosSimulator/recorder.js"],"names":[],"mappings":"AAUA;IACE,wCAGC;IAFC,aAAsB;IACtB,iBAA6C;IAG/C,uBAUC;IAPC
|
|
1
|
+
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["../../../../lib/video/screenRecording/iosSimulator/recorder.js"],"names":[],"mappings":"AAUA;IACE,wCAGC;IAFC,aAAsB;IACtB,iBAA6C;IAG/C,uBAUC;IAPC,kBAMC;IAGH,qCAWC;CACF"}
|
package/types/scripting.d.ts
DELETED