webdriverio 9.12.3 → 9.12.5
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/commands/browser/$$.d.ts +1 -1
- package/build/commands/browser/$.d.ts +1 -1
- package/build/commands/browser/custom$.d.ts +1 -1
- package/build/commands/browser/getWindowSize.d.ts +1 -1
- package/build/commands/browser/newWindow.d.ts +1 -3
- package/build/commands/browser/newWindow.d.ts.map +1 -1
- package/build/commands/browser/react$$.d.ts +2 -2
- package/build/commands/browser/react$.d.ts +2 -2
- package/build/commands/browser/reloadSession.d.ts +1 -1
- package/build/commands/browser/scroll.d.ts +2 -2
- package/build/commands/browser/setCookies.d.ts +1 -1
- package/build/commands/browser/setViewport.d.ts +1 -1
- package/build/commands/browser/setWindowSize.d.ts +1 -1
- package/build/commands/browser/switchFrame.d.ts +1 -1
- package/build/commands/browser/url.d.ts +3 -3
- package/build/commands/clock/restore.d.ts +1 -1
- package/build/commands/clock/setSystemTime.d.ts +1 -1
- package/build/commands/clock/tick.d.ts +1 -1
- package/build/commands/element/$$.d.ts +1 -1
- package/build/commands/element/$.d.ts +1 -1
- package/build/commands/element/addValue.d.ts +1 -1
- package/build/commands/element/click.d.ts +1 -1
- package/build/commands/element/custom$$.d.ts +1 -1
- package/build/commands/element/custom$.d.ts +1 -1
- package/build/commands/element/getElement.d.ts +1 -1
- package/build/commands/element/getElements.d.ts +1 -1
- package/build/commands/element/isDisplayed.d.ts.map +1 -1
- package/build/commands/element/nextElement.d.ts +1 -1
- package/build/commands/element/parentElement.d.ts +1 -1
- package/build/commands/element/previousElement.d.ts +1 -1
- package/build/commands/element/react$$.d.ts +2 -2
- package/build/commands/element/react$.d.ts +2 -2
- package/build/commands/element/setValue.d.ts +1 -1
- package/build/commands/element/shadow$$.d.ts +1 -1
- package/build/commands/element/shadow$.d.ts +1 -1
- package/build/commands/element/waitUntil.d.ts +1 -1
- package/build/commands/mock/request.d.ts +2 -2
- package/build/commands/mock/requestOnce.d.ts +2 -2
- package/build/index.js +22 -38
- package/build/node.js +19 -35
- package/build/scripts/isElementClickable.d.ts.map +1 -1
- package/build/scripts/isElementClickable.js +2 -2
- package/build/session/polyfill.d.ts.map +1 -1
- package/build/utils/interception/index.d.ts.map +1 -1
- package/build/utils/interception/utils.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -32,7 +32,7 @@ import type { Selector } from '../../types.js';
|
|
|
32
32
|
*
|
|
33
33
|
* @alias $$
|
|
34
34
|
* @param {String|Function} selector selector or JS Function to fetch multiple elements
|
|
35
|
-
* @return {ElementArray}
|
|
35
|
+
* @return {WebdriverIO.ElementArray}
|
|
36
36
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/example.html
|
|
37
37
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/multipleElements.js#L6-L7
|
|
38
38
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/multipleElements.js#L15-L24
|
|
@@ -50,7 +50,7 @@ import type { Selector } from '../../types.js';
|
|
|
50
50
|
*
|
|
51
51
|
* @alias $
|
|
52
52
|
* @param {String|Function|Matcher} selector selector, JS Function, or Matcher object to fetch a certain element
|
|
53
|
-
* @return {Element}
|
|
53
|
+
* @return {WebdriverIO.Element}
|
|
54
54
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/example.html
|
|
55
55
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/singleElements.js#L9-L10
|
|
56
56
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/singleElements.js#L16-L25
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @example https://github.com/webdriverio/example-recipes/blob/f5730428ec3605e856e90bf58be17c9c9da891de/queryElements/customStrategy.js#L2-L11
|
|
24
24
|
* @example https://github.com/webdriverio/example-recipes/blob/f5730428ec3605e856e90bf58be17c9c9da891de/queryElements/example.html#L8-L12
|
|
25
25
|
* @example https://github.com/webdriverio/example-recipes/blob/f5730428ec3605e856e90bf58be17c9c9da891de/queryElements/customStrategy.js#L16-L19
|
|
26
|
-
* @return {Element}
|
|
26
|
+
* @return {WebdriverIO.Element}
|
|
27
27
|
*/
|
|
28
28
|
export declare function custom$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: unknown[]): Promise<WebdriverIO.Element>;
|
|
29
29
|
//# sourceMappingURL=custom$.d.ts.map
|
|
@@ -16,7 +16,7 @@ interface BrowserSize {
|
|
|
16
16
|
* </example>
|
|
17
17
|
*
|
|
18
18
|
* @alias browser.getWindowSize
|
|
19
|
-
* @return {Object} { x, y, width, height } for W3C or { width, height } for non W3C browser
|
|
19
|
+
* @return {Object} `{ x, y, width, height }` for W3C or `{ width, height }` for non W3C browser
|
|
20
20
|
* @type window
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
@@ -52,9 +52,7 @@ import type { NewWindowOptions } from '../../types.js';
|
|
|
52
52
|
* @param {String=} options.windowName name of the new window
|
|
53
53
|
* @param {String=} options.windowFeatures features of opened window (e.g. size, position, scrollbars, etc.)
|
|
54
54
|
*
|
|
55
|
-
* @return {Object} An object containing the window handle and the type of new window
|
|
56
|
-
* @return {String} handle - The ID of the window handle of the new tab or window
|
|
57
|
-
* @return {String} type - The type of the new window, either 'tab' or 'window'
|
|
55
|
+
* @return {Object} An object containing the window handle and the type of new window `{handle: string, type: string}` handle - The ID of the window handle of the new tab or window, type - The type of the new window, either 'tab' or 'window'
|
|
58
56
|
*
|
|
59
57
|
* @throws {Error} If `url` is invalid, if the command is used on mobile, or `type` is not 'tab' or 'window'.
|
|
60
58
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/newWindow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAMtD
|
|
1
|
+
{"version":3,"file":"newWindow.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/newWindow.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAMtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAsB,SAAS,CAC3B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,GAAG,EAAE,MAAM,EACX,EAAE,IAAe,EAAE,UAAe,EAAE,cAAmB,EAAE,GAAE,gBAAqB,GACjF,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAA;CAAE,CAAC,CA2DrD"}
|
|
@@ -28,8 +28,8 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
28
28
|
* @param {string} selector of React component
|
|
29
29
|
* @param {ReactSelectorOptions=} options React selector options
|
|
30
30
|
* @param {Object=} options.props React props the element should contain
|
|
31
|
-
* @param {Array<any>|number|string|object|boolean
|
|
32
|
-
* @return {ElementArray}
|
|
31
|
+
* @param {`Array<any>|number|string|object|boolean`=} options.state React state the element should be in
|
|
32
|
+
* @return {WebdriverIO.ElementArray}
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
export declare function react$$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<WebdriverIO.ElementArray>;
|
|
@@ -38,8 +38,8 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
38
38
|
* @param {string} selector of React component
|
|
39
39
|
* @param {ReactSelectorOptions=} options React selector options
|
|
40
40
|
* @param {Object=} options.props React props the element should contain
|
|
41
|
-
* @param {Array<any>|number|string|object|boolean
|
|
42
|
-
* @return {Element}
|
|
41
|
+
* @param {`Array<any>|number|string|object|boolean`=} options.state React state the element should be in
|
|
42
|
+
* @return {WebdriverIO.Element}
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
export declare function react$(this: WebdriverIO.Browser, selector: string, { props, state }?: ReactSelectorOptions): Promise<WebdriverIO.Element>;
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* </example>
|
|
16
16
|
*
|
|
17
17
|
* @alias element.scroll
|
|
18
|
-
* @param {number
|
|
19
|
-
* @param {number
|
|
18
|
+
* @param {number} [x=0] horizontal scroll position (default: `0`)
|
|
19
|
+
* @param {number} [y=0] vertical scroll position (default: `0`)
|
|
20
20
|
* @uses protocol/execute
|
|
21
21
|
* @type utility
|
|
22
22
|
*
|
|
@@ -40,7 +40,7 @@ import type { Cookie } from '@wdio/protocols';
|
|
|
40
40
|
* </example>
|
|
41
41
|
*
|
|
42
42
|
* @alias browser.setCookies
|
|
43
|
-
* @param {Array<WebDriverCookie>|WebDriverCookie} cookie cookie object or object array.
|
|
43
|
+
* @param {`Array<WebDriverCookie>|WebDriverCookie`} cookie cookie object or object array.
|
|
44
44
|
* @param {String=} cookie.name The name of the cookie.
|
|
45
45
|
* @param {String=} cookie.value The cookie value.
|
|
46
46
|
* @param {String=} cookie.path The cookie path. Defaults to "/" if omitted when adding a cookie.
|
|
@@ -23,7 +23,7 @@ export interface SetViewportOptions {
|
|
|
23
23
|
* @param {number} options.width viewport width in pixels
|
|
24
24
|
* @param {number} options.height viewport height in pixels
|
|
25
25
|
* @param {number} options.devicePixelRatio pixel ratio of the viewport
|
|
26
|
-
* @return {Promise<void
|
|
26
|
+
* @return {`Promise<void>`}
|
|
27
27
|
* @type window
|
|
28
28
|
*/
|
|
29
29
|
export declare function setViewport(this: WebdriverIO.Browser, options: SetViewportOptions): Promise<void>;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @alias browser.setWindowSize
|
|
15
15
|
* @param {number} width browser will be resized to provided width
|
|
16
16
|
* @param {number} height browser will be resized to provided height
|
|
17
|
-
* @return {Null|Object} Null for *NO*W3C browser and Object{x, y, width, height} for W3C browser
|
|
17
|
+
* @return {Null|Object} Null for *NO*W3C browser and Object `{x, y, width, height}` for W3C browser
|
|
18
18
|
* @type window
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
@@ -53,7 +53,7 @@ import type { ChainablePromiseElement } from '../../types.js';
|
|
|
53
53
|
*
|
|
54
54
|
* @alias browser.switchFrame
|
|
55
55
|
* @param {string|object|function} context
|
|
56
|
-
* @returns {Promise<string
|
|
56
|
+
* @returns {`Promise<string>`} the current active context id
|
|
57
57
|
*/
|
|
58
58
|
export declare function switchFrame(this: WebdriverIO.Browser, context: WebdriverIO.Element | ChainablePromiseElement | string | null | ((tree: FlatContextTree) => boolean | Promise<boolean>)): Promise<string | void>;
|
|
59
59
|
//# sourceMappingURL=switchFrame.d.ts.map
|
|
@@ -127,13 +127,13 @@ type WaitState = 'none' | 'interactive' | 'networkIdle' | 'complete';
|
|
|
127
127
|
*
|
|
128
128
|
* @param {string=} url the URL to navigate to
|
|
129
129
|
* @param {UrlOptions=} options navigation options
|
|
130
|
-
* @param {'none'
|
|
130
|
+
* @param {'none'|'interactive'|'networkIdle'|'complete'} [options.wait] The desired state the requested resource should be in before finishing the command. Default: 'complete'
|
|
131
131
|
* @param {number=} options.timeout If set to a number, the command will wait for the specified amount of milliseconds for the page to load
|
|
132
132
|
* all responses before returning. Default: 5000
|
|
133
133
|
* @param {Function=} options.onBeforeLoad A function that is being called before your page has loaded all of its resources. It allows you to easily
|
|
134
134
|
* mock the environment, e.g. overwrite Web APIs that your application uses.
|
|
135
|
-
* @param {{user: string, pass: string}
|
|
136
|
-
* @param {Record<string, string
|
|
135
|
+
* @param {`{user: string, pass: string}`=} options.auth basic authentication credentials
|
|
136
|
+
* @param {`Record<string, string>`=} options.headers headers to be sent with the request
|
|
137
137
|
* @returns {WebdriverIO.Request} a request object of the page load with information about the request and response data
|
|
138
138
|
*
|
|
139
139
|
* @see https://w3c.github.io/webdriver/webdriver-spec.html#dfn-get
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
*
|
|
43
43
|
* @alias $$
|
|
44
44
|
* @param {String|Function|Matcher} selector selector, JS Function, or Matcher object to fetch multiple elements
|
|
45
|
-
* @return {ElementArray}
|
|
45
|
+
* @return {WebdriverIO.ElementArray}
|
|
46
46
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/example.html
|
|
47
47
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/multipleElements.js#L6-L7
|
|
48
48
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/multipleElements.js#L15-L24
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
*
|
|
58
58
|
* @alias $
|
|
59
59
|
* @param {String|Function|Matcher} selector selector, JS Function, or Matcher object to fetch a certain element
|
|
60
|
-
* @return {Element}
|
|
60
|
+
* @return {WebdriverIO.Element}
|
|
61
61
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/example.html
|
|
62
62
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/singleElements.js#L9-L10
|
|
63
63
|
* @example https://github.com/webdriverio/example-recipes/blob/59c122c809d44d343c231bde2af7e8456c8f086c/queryElements/singleElements.js#L16-L25
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* </example>
|
|
23
23
|
*
|
|
24
24
|
* @alias element.addValue
|
|
25
|
-
* @param {string
|
|
25
|
+
* @param {string|number} value value to be added
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare function addValue(this: WebdriverIO.Element, value: string | number): Promise<void>;
|
|
@@ -94,7 +94,7 @@ import type { ClickOptions } from '../../types.js';
|
|
|
94
94
|
* @uses protocol/element, protocol/elementIdClick, protocol/performActions, protocol/positionClick
|
|
95
95
|
* @type action
|
|
96
96
|
* @param {ClickOptions=} options Click options (optional)
|
|
97
|
-
* @param {string
|
|
97
|
+
* @param {string|number=} options.button Can be one of `[0, "left", 1, "middle", 2, "right"]` <br /><strong>WEB-ONLY</strong> (Desktop/Mobile)
|
|
98
98
|
* @param {number=} options.x Clicks X horizontal pixels away from location of the element (from center point of element)<br /><strong>WEB and Native</strong> (Desktop/Mobile)
|
|
99
99
|
* @param {number=} options.y Clicks Y vertical pixels away from location of the element (from center point of element)<br /><strong>WEB and Native support</strong> (Desktop/Mobile)
|
|
100
100
|
* @param {boolean=} options.skipRelease Boolean (optional) <br /><strong>WEB-ONLY</strong> (Desktop/Mobile)
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @alias custom$$
|
|
22
22
|
* @param {string} strategyName
|
|
23
23
|
* @param {*} strategyArguments
|
|
24
|
-
* @return {ElementArray}
|
|
24
|
+
* @return {WebdriverIO.ElementArray}
|
|
25
25
|
*/
|
|
26
26
|
export declare function custom$$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: unknown[]): Promise<WebdriverIO.ElementArray>;
|
|
27
27
|
//# sourceMappingURL=custom$$.d.ts.map
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @example https://github.com/webdriverio/example-recipes/blob/f5730428ec3605e856e90bf58be17c9c9da891de/queryElements/customStrategy.js#L2-L11
|
|
25
25
|
* @example https://github.com/webdriverio/example-recipes/blob/f5730428ec3605e856e90bf58be17c9c9da891de/queryElements/example.html#L8-L12
|
|
26
26
|
* @example https://github.com/webdriverio/example-recipes/blob/f5730428ec3605e856e90bf58be17c9c9da891de/queryElements/customStrategy.js#L16-L19
|
|
27
|
-
* @return {Element}
|
|
27
|
+
* @return {WebdriverIO.Element}
|
|
28
28
|
*/
|
|
29
29
|
export declare function custom$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: unknown[]): Promise<WebdriverIO.Element>;
|
|
30
30
|
//# sourceMappingURL=custom$.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AAEH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,GAAE,iBAAkC,
|
|
1
|
+
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AAEH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,GAAE,iBAAkC,oBAoEpD;AASD,UAAU,iBAAiB;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC/B"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* </example>
|
|
19
19
|
*
|
|
20
20
|
* @alias element.previousElement
|
|
21
|
-
* @return {Element}
|
|
21
|
+
* @return {WebdriverIO.Element}
|
|
22
22
|
* @type utility
|
|
23
23
|
*/
|
|
24
24
|
export declare function previousElement(this: WebdriverIO.Element): import("../../types.js").ChainablePromiseElement;
|
|
@@ -28,8 +28,8 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
28
28
|
* @param {string} selector of React component
|
|
29
29
|
* @param {ReactSelectorOptions=} options React selector options
|
|
30
30
|
* @param {Object=} options.props React props the element should contain
|
|
31
|
-
* @param {Array<any>|number|string|object|boolean
|
|
32
|
-
* @return {ElementArray}
|
|
31
|
+
* @param {`Array<any>|number|string|object|boolean`=} options.state React state the element should be in
|
|
32
|
+
* @return {WebdriverIO.ElementArray}
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
export declare function react$$(this: WebdriverIO.Element, selector: string, { props, state }?: ReactSelectorOptions): Promise<WebdriverIO.ElementArray>;
|
|
@@ -38,8 +38,8 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
38
38
|
* @param {string} selector of React component
|
|
39
39
|
* @param {ReactSelectorOptions=} options React selector options
|
|
40
40
|
* @param {Object=} options.props React props the element should contain
|
|
41
|
-
* @param {Array<any>|number|string|object|boolean
|
|
42
|
-
* @return {Element}
|
|
41
|
+
* @param {`Array<any>|number|string|object|boolean`=} options.state React state the element should be in
|
|
42
|
+
* @return {WebdriverIO.Element}
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
export declare function react$(this: WebdriverIO.Element, selector: string, { props, state }?: ReactSelectorOptions): Promise<WebdriverIO.Element>;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* </example>
|
|
22
22
|
*
|
|
23
23
|
* @alias element.setValue
|
|
24
|
-
* @param {string
|
|
24
|
+
* @param {string|number} value value to be added
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare function setValue(this: WebdriverIO.Element, value: string | number): Promise<void>;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* A common example is to wait until a certain element contains a certain text (see example).
|
|
14
14
|
*
|
|
15
15
|
* @alias element.waitUntil
|
|
16
|
-
* @param {Function
|
|
16
|
+
* @param {Function} condition condition to wait on
|
|
17
17
|
* @param {WaitUntilOptions=} options command options
|
|
18
18
|
* @param {Number=} options.timeout time in ms (default set based on [`waitforTimeout`](/docs/configuration#waitfortimeout) config value)
|
|
19
19
|
* @param {String=} options.timeoutMsg error message to throw when waitUntil times out
|
|
@@ -25,8 +25,8 @@ export {};
|
|
|
25
25
|
*
|
|
26
26
|
* @alias mock.request
|
|
27
27
|
* @param {MockOverwrite} overwrites payload to overwrite the response
|
|
28
|
-
* @param {Record<string,string
|
|
29
|
-
* @param {Record<string,string
|
|
28
|
+
* @param {`Record<string,string>`} overwrites.header overwrite specific headers
|
|
29
|
+
* @param {`Record<string,string>`} overwrites.cookies overwrite request cookies
|
|
30
30
|
* @param {string} overwrites.method overwrite request method
|
|
31
31
|
* @param {string} overwrites.url overwrite request url to initiate a redirect
|
|
32
32
|
* @param {MockResponseParams=} params additional respond parameters to overwrite
|
|
@@ -25,8 +25,8 @@ export {};
|
|
|
25
25
|
*
|
|
26
26
|
* @alias mock.requestOnce
|
|
27
27
|
* @param {MockOverwrite} overwrites payload to overwrite the response
|
|
28
|
-
* @param {Record<string, string
|
|
29
|
-
* @param {Record<string, string
|
|
28
|
+
* @param {`Record<string, string>`} overwrites.header overwrite specific headers
|
|
29
|
+
* @param {`Record<string, string>`} overwrites.cookies overwrite request cookies
|
|
30
30
|
* @param {string} overwrites.method overwrite request method
|
|
31
31
|
* @param {string} overwrites.url overwrite request url to initiate a redirect
|
|
32
32
|
* @param {MockResponseParams=} params additional respond parameters to overwrite
|
package/build/index.js
CHANGED
|
@@ -3372,6 +3372,7 @@ var _PolyfillManager = class _PolyfillManager extends SessionManager {
|
|
|
3372
3372
|
__privateSet(this, _initialize, Promise.resolve(true));
|
|
3373
3373
|
return;
|
|
3374
3374
|
}
|
|
3375
|
+
__privateGet(this, _browser4).on("browsingContext.contextCreated", __privateMethod(this, _PolyfillManager_instances, registerScripts_fn).bind(this));
|
|
3375
3376
|
__privateSet(this, _initialize, Promise.all([
|
|
3376
3377
|
__privateGet(this, _browser4).browsingContextGetTree({}).then(({ contexts }) => {
|
|
3377
3378
|
return Promise.all(contexts.map((context) => __privateMethod(this, _PolyfillManager_instances, registerScripts_fn).call(this, context)));
|
|
@@ -3380,7 +3381,6 @@ var _PolyfillManager = class _PolyfillManager extends SessionManager {
|
|
|
3380
3381
|
events: ["browsingContext.contextCreated"]
|
|
3381
3382
|
})
|
|
3382
3383
|
]).then(() => true, () => false));
|
|
3383
|
-
__privateGet(this, _browser4).on("browsingContext.contextCreated", __privateMethod(this, _PolyfillManager_instances, registerScripts_fn).bind(this));
|
|
3384
3384
|
}
|
|
3385
3385
|
removeListeners() {
|
|
3386
3386
|
super.removeListeners();
|
|
@@ -3772,23 +3772,7 @@ function parseOverwrite(overwrite, request) {
|
|
|
3772
3772
|
const result = {};
|
|
3773
3773
|
if ("body" in overwrite && overwrite.body) {
|
|
3774
3774
|
const bodyOverwrite = typeof overwrite.body === "function" ? overwrite.body(request) : overwrite.body;
|
|
3775
|
-
result.body = typeof bodyOverwrite === "string" ? (
|
|
3776
|
-
/**
|
|
3777
|
-
* if body is a string we can pass it as is
|
|
3778
|
-
*/
|
|
3779
|
-
{
|
|
3780
|
-
type: "string",
|
|
3781
|
-
value: bodyOverwrite
|
|
3782
|
-
}
|
|
3783
|
-
) : (
|
|
3784
|
-
/**
|
|
3785
|
-
* if body is an object we need to encode it
|
|
3786
|
-
*/
|
|
3787
|
-
{
|
|
3788
|
-
type: "base64",
|
|
3789
|
-
value: Buffer.from(JSON.stringify(bodyOverwrite || "")).toString("base64")
|
|
3790
|
-
}
|
|
3791
|
-
);
|
|
3775
|
+
result.body = (bodyOverwrite == null ? void 0 : bodyOverwrite.type) === "string" || (bodyOverwrite == null ? void 0 : bodyOverwrite.type) === "base64" ? bodyOverwrite : typeof bodyOverwrite === "string" ? { type: "string", value: bodyOverwrite } : { type: "base64", value: Buffer.from(JSON.stringify(bodyOverwrite || "")).toString("base64") };
|
|
3792
3776
|
}
|
|
3793
3777
|
if ("headers" in overwrite) {
|
|
3794
3778
|
const headersOverwrite = typeof overwrite.headers === "function" ? overwrite.headers(request) : overwrite.headers;
|
|
@@ -3900,19 +3884,14 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
3900
3884
|
*/
|
|
3901
3885
|
getBinaryResponse(requestId) {
|
|
3902
3886
|
const body = __privateGet(this, _responseBodies).get(requestId);
|
|
3903
|
-
if ((body == null ? void 0 : body.type)
|
|
3904
|
-
|
|
3905
|
-
const decoded = Buffer.from(body.value, "base64").toString();
|
|
3906
|
-
const parsed = JSON.parse(decoded);
|
|
3907
|
-
if (parsed.type === "base64" || parsed.base64Encoded) {
|
|
3908
|
-
return Buffer.from(parsed.value, "base64");
|
|
3909
|
-
}
|
|
3910
|
-
return Buffer.from(parsed.value);
|
|
3911
|
-
} catch {
|
|
3912
|
-
return Buffer.from(body.value, "base64");
|
|
3913
|
-
}
|
|
3887
|
+
if ((body == null ? void 0 : body.type) !== "base64") {
|
|
3888
|
+
return null;
|
|
3914
3889
|
}
|
|
3915
|
-
|
|
3890
|
+
if (/[^A-Za-z0-9+/=\s]/.test(body.value)) {
|
|
3891
|
+
log7.warn("Invalid base64 data for request ".concat(requestId));
|
|
3892
|
+
return null;
|
|
3893
|
+
}
|
|
3894
|
+
return Buffer.from(body.value, "base64");
|
|
3916
3895
|
}
|
|
3917
3896
|
/**
|
|
3918
3897
|
* Simulate a responseStarted event for testing purposes
|
|
@@ -4125,6 +4104,7 @@ handleBeforeRequestSent_fn = function(request) {
|
|
|
4125
4104
|
});
|
|
4126
4105
|
};
|
|
4127
4106
|
handleResponseStarted_fn = function(request) {
|
|
4107
|
+
var _a;
|
|
4128
4108
|
if (!__privateMethod(this, _WebDriverInterception_instances, isRequestMatching_fn).call(this, request)) {
|
|
4129
4109
|
return;
|
|
4130
4110
|
}
|
|
@@ -4148,9 +4128,11 @@ handleResponseStarted_fn = function(request) {
|
|
|
4148
4128
|
if (responseData.body) {
|
|
4149
4129
|
__privateGet(this, _responseBodies).set(request.request.request, responseData.body);
|
|
4150
4130
|
}
|
|
4131
|
+
const bodyToSend = ((_a = responseData.body) == null ? void 0 : _a.type) === "string" ? responseData.body.value : responseData.body;
|
|
4151
4132
|
return __privateGet(this, _browser5).networkProvideResponse({
|
|
4152
4133
|
request: request.request.request,
|
|
4153
|
-
...responseData
|
|
4134
|
+
...responseData,
|
|
4135
|
+
body: bodyToSend
|
|
4154
4136
|
}).catch(__privateMethod(this, _WebDriverInterception_instances, handleNetworkProvideResponseError_fn));
|
|
4155
4137
|
}
|
|
4156
4138
|
__privateMethod(this, _WebDriverInterception_instances, emit_fn).call(this, "continue", request.request.request);
|
|
@@ -6838,11 +6820,10 @@ function isElementClickable(elem) {
|
|
|
6838
6820
|
return isElementInViewport2(elem2) && !hasOverlaps(elem2);
|
|
6839
6821
|
}
|
|
6840
6822
|
function getViewportScrollPositions() {
|
|
6841
|
-
var _a, _b;
|
|
6842
6823
|
return {
|
|
6843
6824
|
// Cross-browser compatibility
|
|
6844
|
-
x:
|
|
6845
|
-
y:
|
|
6825
|
+
x: window.scrollX !== null && window.scrollX !== void 0 ? window.scrollX : window.pageXOffset,
|
|
6826
|
+
y: window.scrollY !== null && window.scrollY !== void 0 ? window.scrollY : window.pageYOffset
|
|
6846
6827
|
};
|
|
6847
6828
|
}
|
|
6848
6829
|
let _isFullyDisplayedInViewport = isFullyDisplayedInViewport(elem);
|
|
@@ -7074,16 +7055,19 @@ async function isDisplayed(commandParams = DEFAULT_PARAMS) {
|
|
|
7074
7055
|
let hadToFallback = false;
|
|
7075
7056
|
const [isDisplayed2, displayProperty] = await Promise.all([
|
|
7076
7057
|
browser2.execute(function checkVisibility(elem, params) {
|
|
7077
|
-
|
|
7058
|
+
if (typeof elem.checkVisibility === "function") {
|
|
7059
|
+
return elem.checkVisibility(params);
|
|
7060
|
+
}
|
|
7061
|
+
return null;
|
|
7078
7062
|
}, this, {
|
|
7079
7063
|
...DEFAULT_PARAMS,
|
|
7080
7064
|
...commandParams
|
|
7081
|
-
}).
|
|
7082
|
-
if (
|
|
7065
|
+
}).then((result) => {
|
|
7066
|
+
if (result === null) {
|
|
7083
7067
|
hadToFallback = true;
|
|
7084
7068
|
return browser2.execute(isElementDisplayed, this);
|
|
7085
7069
|
}
|
|
7086
|
-
|
|
7070
|
+
return result;
|
|
7087
7071
|
}),
|
|
7088
7072
|
/**
|
|
7089
7073
|
* don't fail if element is not existing
|
package/build/node.js
CHANGED
|
@@ -3553,6 +3553,7 @@ var PolyfillManager = class _PolyfillManager extends SessionManager {
|
|
|
3553
3553
|
this.#initialize = Promise.resolve(true);
|
|
3554
3554
|
return;
|
|
3555
3555
|
}
|
|
3556
|
+
this.#browser.on("browsingContext.contextCreated", this.#registerScripts.bind(this));
|
|
3556
3557
|
this.#initialize = Promise.all([
|
|
3557
3558
|
this.#browser.browsingContextGetTree({}).then(({ contexts }) => {
|
|
3558
3559
|
return Promise.all(contexts.map((context) => this.#registerScripts(context)));
|
|
@@ -3561,7 +3562,6 @@ var PolyfillManager = class _PolyfillManager extends SessionManager {
|
|
|
3561
3562
|
events: ["browsingContext.contextCreated"]
|
|
3562
3563
|
})
|
|
3563
3564
|
]).then(() => true, () => false);
|
|
3564
|
-
this.#browser.on("browsingContext.contextCreated", this.#registerScripts.bind(this));
|
|
3565
3565
|
}
|
|
3566
3566
|
removeListeners() {
|
|
3567
3567
|
super.removeListeners();
|
|
@@ -3959,23 +3959,7 @@ function parseOverwrite(overwrite, request) {
|
|
|
3959
3959
|
const result = {};
|
|
3960
3960
|
if ("body" in overwrite && overwrite.body) {
|
|
3961
3961
|
const bodyOverwrite = typeof overwrite.body === "function" ? overwrite.body(request) : overwrite.body;
|
|
3962
|
-
result.body = typeof bodyOverwrite === "string" ? (
|
|
3963
|
-
/**
|
|
3964
|
-
* if body is a string we can pass it as is
|
|
3965
|
-
*/
|
|
3966
|
-
{
|
|
3967
|
-
type: "string",
|
|
3968
|
-
value: bodyOverwrite
|
|
3969
|
-
}
|
|
3970
|
-
) : (
|
|
3971
|
-
/**
|
|
3972
|
-
* if body is an object we need to encode it
|
|
3973
|
-
*/
|
|
3974
|
-
{
|
|
3975
|
-
type: "base64",
|
|
3976
|
-
value: Buffer.from(JSON.stringify(bodyOverwrite || "")).toString("base64")
|
|
3977
|
-
}
|
|
3978
|
-
);
|
|
3962
|
+
result.body = bodyOverwrite?.type === "string" || bodyOverwrite?.type === "base64" ? bodyOverwrite : typeof bodyOverwrite === "string" ? { type: "string", value: bodyOverwrite } : { type: "base64", value: Buffer.from(JSON.stringify(bodyOverwrite || "")).toString("base64") };
|
|
3979
3963
|
}
|
|
3980
3964
|
if ("headers" in overwrite) {
|
|
3981
3965
|
const headersOverwrite = typeof overwrite.headers === "function" ? overwrite.headers(request) : overwrite.headers;
|
|
@@ -4137,9 +4121,11 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4137
4121
|
if (responseData.body) {
|
|
4138
4122
|
this.#responseBodies.set(request.request.request, responseData.body);
|
|
4139
4123
|
}
|
|
4124
|
+
const bodyToSend = responseData.body?.type === "string" ? responseData.body.value : responseData.body;
|
|
4140
4125
|
return this.#browser.networkProvideResponse({
|
|
4141
4126
|
request: request.request.request,
|
|
4142
|
-
...responseData
|
|
4127
|
+
...responseData,
|
|
4128
|
+
body: bodyToSend
|
|
4143
4129
|
}).catch(this.#handleNetworkProvideResponseError);
|
|
4144
4130
|
}
|
|
4145
4131
|
this.#emit("continue", request.request.request);
|
|
@@ -4165,19 +4151,14 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4165
4151
|
*/
|
|
4166
4152
|
getBinaryResponse(requestId) {
|
|
4167
4153
|
const body = this.#responseBodies.get(requestId);
|
|
4168
|
-
if (body?.type
|
|
4169
|
-
|
|
4170
|
-
const decoded = Buffer.from(body.value, "base64").toString();
|
|
4171
|
-
const parsed = JSON.parse(decoded);
|
|
4172
|
-
if (parsed.type === "base64" || parsed.base64Encoded) {
|
|
4173
|
-
return Buffer.from(parsed.value, "base64");
|
|
4174
|
-
}
|
|
4175
|
-
return Buffer.from(parsed.value);
|
|
4176
|
-
} catch {
|
|
4177
|
-
return Buffer.from(body.value, "base64");
|
|
4178
|
-
}
|
|
4154
|
+
if (body?.type !== "base64") {
|
|
4155
|
+
return null;
|
|
4179
4156
|
}
|
|
4180
|
-
|
|
4157
|
+
if (/[^A-Za-z0-9+/=\s]/.test(body.value)) {
|
|
4158
|
+
log8.warn(`Invalid base64 data for request ${requestId}`);
|
|
4159
|
+
return null;
|
|
4160
|
+
}
|
|
4161
|
+
return Buffer.from(body.value, "base64");
|
|
4181
4162
|
}
|
|
4182
4163
|
/**
|
|
4183
4164
|
* Simulate a responseStarted event for testing purposes
|
|
@@ -6831,16 +6812,19 @@ async function isDisplayed(commandParams = DEFAULT_PARAMS) {
|
|
|
6831
6812
|
let hadToFallback = false;
|
|
6832
6813
|
const [isDisplayed2, displayProperty] = await Promise.all([
|
|
6833
6814
|
browser2.execute(function checkVisibility(elem, params) {
|
|
6834
|
-
|
|
6815
|
+
if (typeof elem.checkVisibility === "function") {
|
|
6816
|
+
return elem.checkVisibility(params);
|
|
6817
|
+
}
|
|
6818
|
+
return null;
|
|
6835
6819
|
}, this, {
|
|
6836
6820
|
...DEFAULT_PARAMS,
|
|
6837
6821
|
...commandParams
|
|
6838
|
-
}).
|
|
6839
|
-
if (
|
|
6822
|
+
}).then((result) => {
|
|
6823
|
+
if (result === null) {
|
|
6840
6824
|
hadToFallback = true;
|
|
6841
6825
|
return browser2.execute(isElementDisplayedLegacyScript, this);
|
|
6842
6826
|
}
|
|
6843
|
-
|
|
6827
|
+
return result;
|
|
6844
6828
|
}),
|
|
6845
6829
|
/**
|
|
6846
6830
|
* don't fail if element is not existing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isElementClickable.d.ts","sourceRoot":"","sources":["../../src/scripts/isElementClickable.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,IAAI,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"isElementClickable.d.ts","sourceRoot":"","sources":["../../src/scripts/isElementClickable.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,IAAI,EAAE,WAAW,WA4J5D"}
|
|
@@ -88,8 +88,8 @@ function isElementClickable(elem) {
|
|
|
88
88
|
function getViewportScrollPositions() {
|
|
89
89
|
return {
|
|
90
90
|
// Cross-browser compatibility
|
|
91
|
-
x: window.scrollX
|
|
92
|
-
y: window.scrollY
|
|
91
|
+
x: window.scrollX !== null && window.scrollX !== void 0 ? window.scrollX : window.pageXOffset,
|
|
92
|
+
y: window.scrollY !== null && window.scrollY !== void 0 ? window.scrollY : window.pageYOffset
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
let _isFullyDisplayedInViewport = isFullyDisplayedInViewport(elem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/session/polyfill.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,mBAE9D;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,YAQtB,CAAA;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,cAAc;;gBAKnC,OAAO,EAAE,WAAW,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"polyfill.d.ts","sourceRoot":"","sources":["../../src/session/polyfill.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,mBAE9D;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,YAQtB,CAAA;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,cAAc;;gBAKnC,OAAO,EAAE,WAAW,CAAC,OAAO;IA4BxC,eAAe;IAiCT,UAAU;CAGnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/interception/index.ts"],"names":[],"mappings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":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils/interception/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAExE,KAAK,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,kBAAkB,GAAG,MAAM,CAAC,gCAAgC,GAAG,MAAM,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAA;AAEtJ;;;;GAIG;AACH,wBAAgB,cAAc,CAC1B,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EAEjD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,KAAK,CAAC,kCAAkC,GAAG,KAAK,CAAC,kCAAkC,GAC7F,SAAS,CAAC,CAAC,CAAC,CA8Dd;AAED,wBAAgB,eAAe,CAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAAC,sBAU7G"}
|
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": "9.12.
|
|
4
|
+
"version": "9.12.5",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@types/node": "^20.11.30",
|
|
79
79
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
80
|
-
"@wdio/config": "9.12.
|
|
80
|
+
"@wdio/config": "9.12.5",
|
|
81
81
|
"@wdio/logger": "9.4.4",
|
|
82
|
-
"@wdio/protocols": "9.12.
|
|
82
|
+
"@wdio/protocols": "9.12.5",
|
|
83
83
|
"@wdio/repl": "9.4.4",
|
|
84
84
|
"@wdio/types": "9.12.3",
|
|
85
|
-
"@wdio/utils": "9.12.
|
|
85
|
+
"@wdio/utils": "9.12.5",
|
|
86
86
|
"archiver": "^7.0.1",
|
|
87
87
|
"aria-query": "^5.3.0",
|
|
88
88
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -99,15 +99,15 @@
|
|
|
99
99
|
"rgb2hex": "0.2.5",
|
|
100
100
|
"serialize-error": "^11.0.3",
|
|
101
101
|
"urlpattern-polyfill": "^10.0.0",
|
|
102
|
-
"webdriver": "9.12.
|
|
102
|
+
"webdriver": "9.12.5"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"puppeteer-core": "
|
|
105
|
+
"puppeteer-core": ">=22.x || <=24.x"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|
|
108
108
|
"puppeteer-core": {
|
|
109
109
|
"optional": true
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "795e4525599909356d02ef0788c1ece7a7d85ecf"
|
|
113
113
|
}
|