webdriverio 7.19.4 → 7.20.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/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/utils/findStrategy.d.ts +1 -1
- package/build/utils/findStrategy.d.ts.map +1 -1
- package/build/utils/getElementObject.d.ts +1 -1
- package/build/utils/getElementObject.d.ts.map +1 -1
- package/build/utils/index.d.ts +3 -3
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +0 -17
- package/package.json +10 -11
package/build/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare type RemoteOptions = Options.WebdriverIO & Omit<Options.Testrunne
|
|
|
15
15
|
* @return {object} browser object with sessionId
|
|
16
16
|
* @see <a href="https://webdriver.io/docs/typescript">Typescript setup</a>
|
|
17
17
|
*/
|
|
18
|
-
export declare const remote: (params: RemoteOptions, remoteModifier?: Function
|
|
18
|
+
export declare const remote: (params: RemoteOptions, remoteModifier?: Function) => Promise<WebdriverIO.Browser>;
|
|
19
19
|
export declare const attach: (attachOptions: AttachOptions) => Promise<WebdriverIO.Browser>;
|
|
20
20
|
/**
|
|
21
21
|
* WebdriverIO allows you to run multiple automated sessions in a single test.
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKnD,OAAO,wBAAwB,MAAM,4BAA4B,CAAA;AAOjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,oBAAY,aAAa,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC,CAAA;AAE1F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WAA2B,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAKnD,OAAO,wBAAwB,MAAM,4BAA4B,CAAA;AAOjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,oBAAY,aAAa,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC,CAAA;AAE1F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WAA2B,aAAa,mBAAmB,QAAQ,KAAG,QAAQ,YAAY,OAAO,CA+CnH,CAAA;AAED,eAAO,MAAM,MAAM,kBAAkC,aAAa,KAAG,QAAQ,YAAY,OAAO,CAmB/F,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,WACZ,aAAa,uBAAuB;;MAE7C,QAAQ,YAAY,kBAAkB,CAgExC,CAAA;AAED,eAAO,MAAM,kBAAkB,iCAA2B,CAAA;AAC1D,cAAc,SAAS,CAAA;AACvB,cAAc,4BAA4B,CAAA"}
|
|
@@ -2,7 +2,7 @@ declare type SelectorStrategy = string | {
|
|
|
2
2
|
name: string;
|
|
3
3
|
args: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const findStrategy: (selector: SelectorStrategy, isW3C?: boolean
|
|
5
|
+
export declare const findStrategy: (selector: SelectorStrategy, isW3C?: boolean, isMobile?: boolean) => {
|
|
6
6
|
using: string;
|
|
7
7
|
value: string;
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findStrategy.d.ts","sourceRoot":"","sources":["../../src/utils/findStrategy.ts"],"names":[],"mappings":"AA4BA,aAAK,gBAAgB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAuF/D,eAAO,MAAM,YAAY,aAAuB,gBAAgB;;;
|
|
1
|
+
{"version":3,"file":"findStrategy.d.ts","sourceRoot":"","sources":["../../src/utils/findStrategy.ts"],"names":[],"mappings":"AA4BA,aAAK,gBAAgB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAuF/D,eAAO,MAAM,YAAY,aAAuB,gBAAgB,UAAU,OAAO,aAAa,OAAO;;;CAoIpG,CAAA"}
|
|
@@ -6,7 +6,7 @@ import type { Selector, ElementArray } from '../types';
|
|
|
6
6
|
* @param {Object} res findElement response
|
|
7
7
|
* @return {Object} WDIO element object
|
|
8
8
|
*/
|
|
9
|
-
export declare const getElement: (this: WebdriverIO.Browser | WebdriverIO.Element, selector?: Selector
|
|
9
|
+
export declare const getElement: (this: WebdriverIO.Browser | WebdriverIO.Element, selector?: Selector, res?: ElementReference | Error, isReactElement?: boolean) => WebdriverIO.Element;
|
|
10
10
|
/**
|
|
11
11
|
* transforms a findElements response into an array of WDIO elements
|
|
12
12
|
* @param {String} selector selector that was used to query the element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getElementObject.d.ts","sourceRoot":"","sources":["../../src/utils/getElementObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAKvD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,SACb,YAAY,OAAO,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"getElementObject.d.ts","sourceRoot":"","sources":["../../src/utils/getElementObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAKvD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,SACb,YAAY,OAAO,GAAG,mBAAmB,aACpC,QAAQ,QACb,gBAAgB,GAAG,KAAK,+BAE/B,mBA8CF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,SACd,YAAY,OAAO,GAAG,mBAAmB,YACrC,QAAQ,gBACJ,gBAAgB,EAAE,+BAEjC,YA+CF,CAAA"}
|
package/build/utils/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare function getScrollPosition(scope: WebdriverIO.Element): Promise<{
|
|
|
69
69
|
scrollY: number;
|
|
70
70
|
}>;
|
|
71
71
|
export declare function hasElementId(element: WebdriverIO.Element): Promise<boolean>;
|
|
72
|
-
export declare function addLocatorStrategyHandler(scope: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser): (name: string, func: (selector: string, root?: HTMLElement
|
|
72
|
+
export declare function addLocatorStrategyHandler(scope: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser): (name: string, func: (selector: string, root?: HTMLElement) => CustomLocatorReturnValue) => void;
|
|
73
73
|
/**
|
|
74
74
|
* Enhance elements array with data required to refetch it
|
|
75
75
|
* @param {object[]} elements elements
|
|
@@ -84,7 +84,7 @@ export declare const enhanceElementsArray: (elements: ElementArray, parent: Webd
|
|
|
84
84
|
* is protocol stub
|
|
85
85
|
* @param {string} automationProtocol
|
|
86
86
|
*/
|
|
87
|
-
export declare const isStub: (automationProtocol?: string
|
|
87
|
+
export declare const isStub: (automationProtocol?: string) => boolean;
|
|
88
88
|
export declare const getAutomationProtocol: (config: Options.WebdriverIO | Options.Testrunner) => Promise<Options.SupportedProtocols>;
|
|
89
89
|
/**
|
|
90
90
|
* updateCapabilities allows modifying capabilities before session
|
|
@@ -92,7 +92,7 @@ export declare const getAutomationProtocol: (config: Options.WebdriverIO | Optio
|
|
|
92
92
|
*
|
|
93
93
|
* NOTE: this method is executed twice when running the WDIO testrunner
|
|
94
94
|
*/
|
|
95
|
-
export declare const updateCapabilities: (params: Options.WebdriverIO | Options.Testrunner, automationProtocol?: Options.SupportedProtocols
|
|
95
|
+
export declare const updateCapabilities: (params: Options.WebdriverIO | Options.Testrunner, automationProtocol?: Options.SupportedProtocols) => Promise<void>;
|
|
96
96
|
/**
|
|
97
97
|
* compare if an object (`base`) contains the same values as another object (`match`)
|
|
98
98
|
* @param {object} base object to compare to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAA;AAKxD,OAAO,KAAK,EAAE,YAAY,EAAmB,QAAQ,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAsBjH;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,SAAS,GAAG,SAAS,uCAmBxD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAS,gBAAgB,QAuB3D,CAAA;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAGtG;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAE,KAAK,EAAE,GAAG,EAAE,kBAAkB,UAAO,YA0B3E;AAWD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAE,gBAAgB,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,kBAkDvE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE,MAAM,EACb,UAAU,UAAQ,YAKrB;AAkBD;;GAEG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WA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;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACvB,OAAO,MAAM,EAAE,MAAM,CAAC,SACrB,OAAO,MAAM,EAAE,MAAM,CAAC,YAShC,CAAA"}
|
package/build/utils/index.js
CHANGED
|
@@ -9,7 +9,6 @@ const http_1 = __importDefault(require("http"));
|
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
10
|
const css_value_1 = __importDefault(require("css-value"));
|
|
11
11
|
const rgb2hex_1 = __importDefault(require("rgb2hex"));
|
|
12
|
-
const get_port_1 = __importDefault(require("get-port"));
|
|
13
12
|
const grapheme_splitter_1 = __importDefault(require("grapheme-splitter"));
|
|
14
13
|
const logger_1 = __importDefault(require("@wdio/logger"));
|
|
15
14
|
const lodash_isobject_1 = __importDefault(require("lodash.isobject"));
|
|
@@ -516,25 +515,9 @@ exports.getAutomationProtocol = getAutomationProtocol;
|
|
|
516
515
|
* NOTE: this method is executed twice when running the WDIO testrunner
|
|
517
516
|
*/
|
|
518
517
|
const updateCapabilities = async (params, automationProtocol) => {
|
|
519
|
-
const caps = params.capabilities;
|
|
520
518
|
if (automationProtocol && !params.automationProtocol) {
|
|
521
519
|
params.automationProtocol = automationProtocol;
|
|
522
520
|
}
|
|
523
|
-
/**
|
|
524
|
-
* attach remote debugging port options to Firefox sessions
|
|
525
|
-
* (this will be ignored if not supported)
|
|
526
|
-
*/
|
|
527
|
-
if (automationProtocol === 'webdriver' && caps.browserName === 'firefox') {
|
|
528
|
-
if (!caps['moz:firefoxOptions']) {
|
|
529
|
-
caps['moz:firefoxOptions'] = {};
|
|
530
|
-
}
|
|
531
|
-
if (!caps['moz:firefoxOptions'].args) {
|
|
532
|
-
caps['moz:firefoxOptions'].args = [];
|
|
533
|
-
}
|
|
534
|
-
if (!caps['moz:firefoxOptions'].args.includes(constants_1.FF_REMOTE_DEBUG_ARG)) {
|
|
535
|
-
caps['moz:firefoxOptions'].args.push(constants_1.FF_REMOTE_DEBUG_ARG, (await (0, get_port_1.default)()).toString());
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
521
|
};
|
|
539
522
|
exports.updateCapabilities = updateCapabilities;
|
|
540
523
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriverio",
|
|
3
3
|
"description": "Next-gen browser and mobile automation test framework for Node.js",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.20.0",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -57,20 +57,19 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@types/aria-query": "^5.0.0",
|
|
59
59
|
"@types/node": "^17.0.4",
|
|
60
|
-
"@wdio/config": "7.
|
|
60
|
+
"@wdio/config": "7.20.0",
|
|
61
61
|
"@wdio/logger": "7.19.0",
|
|
62
|
-
"@wdio/protocols": "7.
|
|
63
|
-
"@wdio/repl": "7.
|
|
64
|
-
"@wdio/types": "7.
|
|
65
|
-
"@wdio/utils": "7.
|
|
62
|
+
"@wdio/protocols": "7.20.0",
|
|
63
|
+
"@wdio/repl": "7.20.0",
|
|
64
|
+
"@wdio/types": "7.20.0",
|
|
65
|
+
"@wdio/utils": "7.20.0",
|
|
66
66
|
"archiver": "^5.0.0",
|
|
67
67
|
"aria-query": "^5.0.0",
|
|
68
68
|
"css-shorthand-properties": "^1.1.1",
|
|
69
69
|
"css-value": "^0.0.1",
|
|
70
|
-
"devtools": "7.
|
|
71
|
-
"devtools-protocol": "^0.0.
|
|
70
|
+
"devtools": "7.20.0",
|
|
71
|
+
"devtools-protocol": "^0.0.1010282",
|
|
72
72
|
"fs-extra": "^10.0.0",
|
|
73
|
-
"get-port": "^5.1.1",
|
|
74
73
|
"grapheme-splitter": "^1.0.2",
|
|
75
74
|
"lodash.clonedeep": "^4.5.0",
|
|
76
75
|
"lodash.isobject": "^3.0.2",
|
|
@@ -82,7 +81,7 @@
|
|
|
82
81
|
"resq": "^1.9.1",
|
|
83
82
|
"rgb2hex": "0.2.5",
|
|
84
83
|
"serialize-error": "^8.0.0",
|
|
85
|
-
"webdriver": "7.
|
|
84
|
+
"webdriver": "7.20.0"
|
|
86
85
|
},
|
|
87
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "b00976955d3901903fe8401d09ed10d8826d38b1"
|
|
88
87
|
}
|