webdriverio 7.19.7 → 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/package.json +10 -10
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":"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,WAAW,CAAC,OAAO,EAC/C,QAAQ,EAAE,QAAQ,qCAmDrB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAC9B,IAAI,E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jG;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,aACnB,YAAY,UACd,YAAY,OAAO,GAAG,mBAAmB,YACvC,QAAQ,8BAEX,GAAG,EAAE,iBAOf,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM,wBAAyB,MAAM,YAA6C,CAAA;AAE/F,eAAO,MAAM,qBAAqB,WAAkB,mBAAmB,GAAG,QAAQ,UAAU,wCAmE3F,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAkB,mBAAmB,GAAG,QAAQ,UAAU,uBAAuB,QAAQ,kBAAkB,kBAIzI,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,SACvB,OAAO,MAAM,EAAE,MAAM,CAAC,SACrB,OAAO,MAAM,EAAE,MAAM,CAAC,YAShC,CAAA"}
|
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,18 +57,18 @@
|
|
|
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
73
|
"grapheme-splitter": "^1.0.2",
|
|
74
74
|
"lodash.clonedeep": "^4.5.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"resq": "^1.9.1",
|
|
82
82
|
"rgb2hex": "0.2.5",
|
|
83
83
|
"serialize-error": "^8.0.0",
|
|
84
|
-
"webdriver": "7.
|
|
84
|
+
"webdriver": "7.20.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "b00976955d3901903fe8401d09ed10d8826d38b1"
|
|
87
87
|
}
|