@wdio/utils 8.16.22 → 8.17.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/build/driver/utils.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { EdgedriverParameters } from 'edgedriver';
|
|
2
|
-
import type { Options
|
|
2
|
+
import type { Options } from '@wdio/types';
|
|
3
3
|
export declare function parseParams(params: EdgedriverParameters): string[];
|
|
4
4
|
export declare function getBuildIdByChromePath(chromePath?: string): string | undefined;
|
|
5
5
|
export declare function getBuildIdByFirefoxPath(firefoxPath?: string): Promise<string | undefined>;
|
|
6
6
|
export declare const downloadProgressCallback: (artifact: string, downloadedBytes: number, totalBytes: number) => void;
|
|
7
|
-
export declare function setupPuppeteerBrowser(cacheDir: string, caps:
|
|
7
|
+
export declare function setupPuppeteerBrowser(cacheDir: string, caps: WebdriverIO.Capabilities): Promise<{
|
|
8
8
|
executablePath: string;
|
|
9
9
|
browserVersion: string | undefined;
|
|
10
10
|
} | {
|
|
11
11
|
executablePath: string | undefined;
|
|
12
12
|
browserVersion: string;
|
|
13
13
|
}>;
|
|
14
|
-
export declare function getDriverOptions(caps:
|
|
15
|
-
export declare function getCacheDir(options: Pick<Options.WebDriver, 'cacheDir'>, caps:
|
|
14
|
+
export declare function getDriverOptions(caps: WebdriverIO.Capabilities): WebdriverIO.ChromedriverOptions | WebdriverIO.GeckodriverOptions | WebdriverIO.EdgedriverOptions;
|
|
15
|
+
export declare function getCacheDir(options: Pick<Options.WebDriver, 'cacheDir'>, caps: WebdriverIO.Capabilities): string;
|
|
16
16
|
export declare function setupChromedriver(cacheDir: string, driverVersion?: string): Promise<{
|
|
17
17
|
executablePath: string;
|
|
18
18
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/driver/utils.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,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BAAgB,QAAQ,CAAE,WAAW,CAAC,EAAE,MAAM,WAE7C;AACD,wBAAgB,QAAQ,CAAE,WAAW,CAAC,EAAE,MAAM,WAE7C;AACD,wBAAgB,SAAS,CAAE,WAAW,CAAC,EAAE,MAAM,WAE9C;AACD,wBAAgB,MAAM,CAAE,WAAW,CAAC,EAAE,MAAM,WAE3C"}
|
package/build/envDetector.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function isW3C(capabilities?: Capabilities.DesiredCapabilities):
|
|
|
11
11
|
* @param {string=} automationProtocol `devtools`
|
|
12
12
|
* @return {Object} object with environment flags
|
|
13
13
|
*/
|
|
14
|
-
export declare function capabilitiesEnvironmentDetector(capabilities:
|
|
14
|
+
export declare function capabilitiesEnvironmentDetector(capabilities: WebdriverIO.Capabilities, automationProtocol: string): {
|
|
15
15
|
isChrome: boolean;
|
|
16
16
|
isFirefox: boolean;
|
|
17
17
|
isMobile: boolean;
|
|
@@ -45,7 +45,7 @@ export declare function sessionEnvironmentDetector({ capabilities, requestedCapa
|
|
|
45
45
|
* @param {Object} capabilities caps of session response
|
|
46
46
|
* @return {Object} object with environment flags
|
|
47
47
|
*/
|
|
48
|
-
export declare function devtoolsEnvironmentDetector({ browserName }:
|
|
48
|
+
export declare function devtoolsEnvironmentDetector({ browserName }: WebdriverIO.Capabilities): {
|
|
49
49
|
isDevTools: boolean;
|
|
50
50
|
isW3C: boolean;
|
|
51
51
|
isMobile: boolean;
|
|
@@ -63,7 +63,7 @@ export declare function devtoolsEnvironmentDetector({ browserName }: Capabilitie
|
|
|
63
63
|
* @param {Object} capabilities caps provided by user
|
|
64
64
|
* @return {Object} object with environment flags
|
|
65
65
|
*/
|
|
66
|
-
export declare function webdriverEnvironmentDetector(capabilities:
|
|
66
|
+
export declare function webdriverEnvironmentDetector(capabilities: WebdriverIO.Capabilities): {
|
|
67
67
|
isChrome: boolean;
|
|
68
68
|
isFirefox: boolean;
|
|
69
69
|
isMobile: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envDetector.d.ts","sourceRoot":"","sources":["../src/envDetector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,mBAAmB,WAwCpE;AA4JD;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"envDetector.d.ts","sourceRoot":"","sources":["../src/envDetector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC,mBAAmB,WAwCpE;AA4JD;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY,EAAE,kBAAkB,EAAE,MAAM;;;;;;;;EAIjH;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,YAAY,EAAE,qBAAqB,EAAE,EAC9E;IAAE,YAAY,EAAE,YAAY,CAAC,gBAAgB,CAAC;IAAC,qBAAqB,EAAE,YAAY,CAAC,gBAAgB,CAAA;CAAE;;;;;;;;;;EAexG;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,WAAW,EAAE,EAAE,WAAW,CAAC,YAAY;;;;;;;;;;;EAapF;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,YAAY,EAAE,WAAW,CAAC,YAAY;;;;;;;;EAUlF"}
|
package/build/monad.js
CHANGED
|
@@ -166,10 +166,11 @@ export default function WebDriver(options, modifier, propertiesObject = {}) {
|
|
|
166
166
|
*/
|
|
167
167
|
for (const eventCommand in EVENTHANDLER_FUNCTIONS) {
|
|
168
168
|
prototype[eventCommand] = function (...args) {
|
|
169
|
-
|
|
169
|
+
const method = eventCommand;
|
|
170
|
+
eventHandler[method]?.(...args);
|
|
170
171
|
if (prototype.eventMiddleware) {
|
|
171
|
-
if (typeof prototype.eventMiddleware[
|
|
172
|
-
prototype.eventMiddleware.socket[
|
|
172
|
+
if (typeof prototype.eventMiddleware[method] === 'function') {
|
|
173
|
+
prototype.eventMiddleware.socket[method](...args);
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
return this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/utils",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.17.0",
|
|
4
4
|
"description": "A WDIO helper utility to provide several utility functions used across the project.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-utils",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@puppeteer/browsers": "^1.6.0",
|
|
34
34
|
"@wdio/logger": "8.16.17",
|
|
35
|
-
"@wdio/types": "8.
|
|
35
|
+
"@wdio/types": "8.17.0",
|
|
36
36
|
"decamelize": "^6.0.0",
|
|
37
37
|
"deepmerge-ts": "^5.1.0",
|
|
38
38
|
"edgedriver": "^5.3.5",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "f7fe9474c580fc2003f6abca130e44ed025b1bd5"
|
|
52
52
|
}
|