webdriverio 8.8.1 → 8.8.4
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/addCommand.d.ts +1 -1
- package/build/commands/browser/addCommand.js +1 -1
- package/build/commands/browser/custom$$.d.ts +2 -2
- package/build/commands/browser/custom$$.js +2 -2
- package/build/commands/browser/custom$.d.ts +2 -2
- package/build/commands/browser/custom$.js +2 -2
- package/build/commands/browser/newWindow.d.ts +1 -1
- package/build/commands/browser/newWindow.js +1 -1
- package/build/commands/browser/overwriteCommand.d.ts +1 -1
- package/build/commands/browser/overwriteCommand.js +1 -1
- package/build/commands/browser/pause.d.ts +1 -1
- package/build/commands/browser/pause.js +1 -1
- package/build/commands/browser/react$$.d.ts +1 -1
- package/build/commands/browser/react$$.js +1 -1
- package/build/commands/browser/react$.d.ts +1 -1
- package/build/commands/browser/react$.js +1 -1
- package/build/commands/browser/setWindowSize.d.ts +2 -2
- package/build/commands/browser/setWindowSize.js +2 -2
- package/build/commands/browser/throttle.js +4 -4
- package/build/commands/browser/uploadFile.d.ts +1 -1
- package/build/commands/browser/uploadFile.js +1 -1
- package/build/commands/element/custom$$.d.ts +2 -2
- package/build/commands/element/custom$$.js +2 -2
- package/build/commands/element/custom$.d.ts +2 -2
- package/build/commands/element/custom$.js +2 -2
- package/build/commands/element/getAttribute.d.ts +1 -1
- package/build/commands/element/getAttribute.js +1 -1
- package/build/commands/element/getCSSProperty.d.ts +1 -1
- package/build/commands/element/getCSSProperty.js +1 -1
- package/build/commands/element/getLocation.js +1 -1
- package/build/commands/element/getProperty.d.ts +1 -1
- package/build/commands/element/getProperty.js +1 -1
- package/build/commands/element/react$$.d.ts +1 -1
- package/build/commands/element/react$$.js +1 -1
- package/build/commands/element/react$.d.ts +1 -1
- package/build/commands/element/react$.js +1 -1
- package/build/commands/element/selectByAttribute.d.ts +1 -1
- package/build/commands/element/selectByAttribute.js +1 -1
- package/build/commands/element/selectByIndex.d.ts +1 -1
- package/build/commands/element/selectByIndex.js +1 -1
- package/build/scripts/getHTML.d.ts +1 -1
- package/build/scripts/getHTML.js +1 -1
- package/build/scripts/getProperty.d.ts +2 -2
- package/build/scripts/getProperty.js +2 -2
- package/build/scripts/newWindow.d.ts +3 -3
- package/build/scripts/newWindow.js +3 -3
- package/build/utils/Timer.d.ts +3 -3
- package/build/utils/Timer.js +3 -3
- package/build/utils/getElementObject.d.ts +2 -2
- package/build/utils/getElementObject.js +2 -2
- package/build/utils/index.d.ts +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +9 -9
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
})
|
|
29
29
|
* </example>
|
|
30
30
|
* @alias browser.addCommand
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {string} name name of the custom command
|
|
32
32
|
* @param {Function} callback function to be called
|
|
33
33
|
* @param {Boolean=} elementScope extend the Element object instead of the Browser object
|
|
34
34
|
* @type utility
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
})
|
|
30
30
|
* </example>
|
|
31
31
|
* @alias browser.addCommand
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {string} name name of the custom command
|
|
33
33
|
* @param {Function} callback function to be called
|
|
34
34
|
* @param {Boolean=} elementScope extend the Element object instead of the Browser object
|
|
35
35
|
* @type utility
|
|
@@ -18,8 +18,8 @@ import type { ElementArray } from '../../types.js';
|
|
|
18
18
|
* </example>
|
|
19
19
|
*
|
|
20
20
|
* @alias custom$$
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
21
|
+
* @param {string} strategyName
|
|
22
|
+
* @param {*} strategyArguments
|
|
23
23
|
* @return {ElementArray}
|
|
24
24
|
*/
|
|
25
25
|
export declare function custom$$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<ElementArray>;
|
|
@@ -20,8 +20,8 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
20
20
|
* </example>
|
|
21
21
|
*
|
|
22
22
|
* @alias custom$$
|
|
23
|
-
* @param {
|
|
24
|
-
* @param {
|
|
23
|
+
* @param {string} strategyName
|
|
24
|
+
* @param {*} strategyArguments
|
|
25
25
|
* @return {ElementArray}
|
|
26
26
|
*/
|
|
27
27
|
export async function custom$$(strategyName, ...strategyArguments) {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* </example>
|
|
18
18
|
*
|
|
19
19
|
* @alias custom$
|
|
20
|
-
* @param {
|
|
21
|
-
* @param {
|
|
20
|
+
* @param {string} strategyName
|
|
21
|
+
* @param {*} strategyArguments
|
|
22
22
|
* @return {Element}
|
|
23
23
|
*/
|
|
24
24
|
export declare function custom$(this: WebdriverIO.Browser, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
|
|
@@ -19,8 +19,8 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
19
19
|
* </example>
|
|
20
20
|
*
|
|
21
21
|
* @alias custom$
|
|
22
|
-
* @param {
|
|
23
|
-
* @param {
|
|
22
|
+
* @param {string} strategyName
|
|
23
|
+
* @param {*} strategyArguments
|
|
24
24
|
* @return {Element}
|
|
25
25
|
*/
|
|
26
26
|
export async function custom$(strategyName, ...strategyArguments) {
|
|
@@ -26,7 +26,7 @@ import type { NewWindowOptions } from '../../types.js';
|
|
|
26
26
|
});
|
|
27
27
|
* </example>
|
|
28
28
|
*
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {string} url website URL to open
|
|
30
30
|
* @param {NewWindowOptions=} options newWindow command options
|
|
31
31
|
* @param {String=} options.windowName name of the new window
|
|
32
32
|
* @param {String=} options.windowFeatures features of opened window (e.g. size, position, scrollbars, etc.)
|
|
@@ -28,7 +28,7 @@ const WAIT_FOR_NEW_HANDLE_TIMEOUT = 3000;
|
|
|
28
28
|
});
|
|
29
29
|
* </example>
|
|
30
30
|
*
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {string} url website URL to open
|
|
32
32
|
* @param {NewWindowOptions=} options newWindow command options
|
|
33
33
|
* @param {String=} options.windowName name of the new window
|
|
34
34
|
* @param {String=} options.windowFeatures features of opened window (e.g. size, position, scrollbars, etc.)
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
})
|
|
24
24
|
* </example>
|
|
25
25
|
* @alias browser.overwriteCommand
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {string} name name of the original command
|
|
27
27
|
* @param {Function} callback pass original function
|
|
28
28
|
* @param {Boolean=} elementScope extend the Element object instead of the Browser object
|
|
29
29
|
* @type utility
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
})
|
|
25
25
|
* </example>
|
|
26
26
|
* @alias browser.overwriteCommand
|
|
27
|
-
* @param {
|
|
27
|
+
* @param {string} name name of the original command
|
|
28
28
|
* @param {Function} callback pass original function
|
|
29
29
|
* @param {Boolean=} elementScope extend the Element object instead of the Browser object
|
|
30
30
|
* @type utility
|
|
@@ -25,7 +25,7 @@ import type { ReactSelectorOptions, ElementArray } from '../../types.js';
|
|
|
25
25
|
* </example>
|
|
26
26
|
*
|
|
27
27
|
* @alias browser.react$$
|
|
28
|
-
* @param {
|
|
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
31
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -31,7 +31,7 @@ let resqScript;
|
|
|
31
31
|
* </example>
|
|
32
32
|
*
|
|
33
33
|
* @alias browser.react$$
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {string} selector of React component
|
|
35
35
|
* @param {ReactSelectorOptions=} options React selector options
|
|
36
36
|
* @param {Object=} options.props React props the element should contain
|
|
37
37
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -35,7 +35,7 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
35
35
|
* </example>
|
|
36
36
|
*
|
|
37
37
|
* @alias browser.react$
|
|
38
|
-
* @param {
|
|
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
41
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -40,7 +40,7 @@ let resqScript;
|
|
|
40
40
|
* </example>
|
|
41
41
|
*
|
|
42
42
|
* @alias browser.react$
|
|
43
|
-
* @param {
|
|
43
|
+
* @param {string} selector of React component
|
|
44
44
|
* @param {ReactSelectorOptions=} options React selector options
|
|
45
45
|
* @param {Object=} options.props React props the element should contain
|
|
46
46
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* </example>
|
|
11
11
|
*
|
|
12
12
|
* @alias browser.setWindowSize
|
|
13
|
-
* @param {
|
|
14
|
-
* @param {
|
|
13
|
+
* @param {number} width browser will be resized to provided width
|
|
14
|
+
* @param {number} height browser will be resized to provided height
|
|
15
15
|
* @return {Null|Object} Null for *NO*W3C browser and Object{x, y, width, height} for W3C browser
|
|
16
16
|
* @type window
|
|
17
17
|
*
|
|
@@ -13,8 +13,8 @@ const maxWindowSize = Number.MAX_SAFE_INTEGER;
|
|
|
13
13
|
* </example>
|
|
14
14
|
*
|
|
15
15
|
* @alias browser.setWindowSize
|
|
16
|
-
* @param {
|
|
17
|
-
* @param {
|
|
16
|
+
* @param {number} width browser will be resized to provided width
|
|
17
|
+
* @param {number} height browser will be resized to provided height
|
|
18
18
|
* @return {Null|Object} Null for *NO*W3C browser and Object{x, y, width, height} for W3C browser
|
|
19
19
|
* @type window
|
|
20
20
|
*
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
*
|
|
36
36
|
* @alias browser.throttle
|
|
37
37
|
* @param {ThrottleOptions} params parameters for throttling
|
|
38
|
-
* @param {
|
|
39
|
-
* @param {
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {
|
|
38
|
+
* @param {boolean} params.offline True to emulate internet disconnection.
|
|
39
|
+
* @param {number} params.latency Minimum latency from request sent to response headers received (ms).
|
|
40
|
+
* @param {number} params.downloadThroughput Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
|
|
41
|
+
* @param {number} params.uploadThroughput Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
|
|
42
42
|
* @type utility
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
@@ -26,7 +26,7 @@ import archiver from 'archiver';
|
|
|
26
26
|
* </example>
|
|
27
27
|
*
|
|
28
28
|
* @alias browser.uploadFile
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {string} localPath local path to file
|
|
30
30
|
* @type utility
|
|
31
31
|
* @uses protocol/file
|
|
32
32
|
* @return {String} remote URL
|
|
@@ -19,8 +19,8 @@ import type { ElementArray } from '../../types.js';
|
|
|
19
19
|
* </example>
|
|
20
20
|
*
|
|
21
21
|
* @alias custom$$
|
|
22
|
-
* @param {
|
|
23
|
-
* @param {
|
|
22
|
+
* @param {string} strategyName
|
|
23
|
+
* @param {*} strategyArguments
|
|
24
24
|
* @return {ElementArray}
|
|
25
25
|
*/
|
|
26
26
|
export declare function custom$$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: any[]): Promise<ElementArray>;
|
|
@@ -21,8 +21,8 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
21
21
|
* </example>
|
|
22
22
|
*
|
|
23
23
|
* @alias custom$$
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {
|
|
24
|
+
* @param {string} strategyName
|
|
25
|
+
* @param {*} strategyArguments
|
|
26
26
|
* @return {ElementArray}
|
|
27
27
|
*/
|
|
28
28
|
export async function custom$$(strategyName, ...strategyArguments) {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* </example>
|
|
19
19
|
*
|
|
20
20
|
* @alias custom$
|
|
21
|
-
* @param {
|
|
22
|
-
* @param {
|
|
21
|
+
* @param {string} strategyName
|
|
22
|
+
* @param {*} strategyArguments
|
|
23
23
|
* @return {Element}
|
|
24
24
|
*/
|
|
25
25
|
export declare function custom$(this: WebdriverIO.Element, strategyName: string, ...strategyArguments: any[]): Promise<WebdriverIO.Element>;
|
|
@@ -21,8 +21,8 @@ import { ELEMENT_KEY } from '../../constants.js';
|
|
|
21
21
|
* </example>
|
|
22
22
|
*
|
|
23
23
|
* @alias custom$
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {
|
|
24
|
+
* @param {string} strategyName
|
|
25
|
+
* @param {*} strategyArguments
|
|
26
26
|
* @return {Element}
|
|
27
27
|
*/
|
|
28
28
|
export async function custom$(strategyName, ...strategyArguments) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* </example>
|
|
19
19
|
*
|
|
20
20
|
* @alias element.getAttribute
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {string} attributeName requested attribute
|
|
22
22
|
* @return {String|null} The value of the attribute, or null if it is not set on the element.
|
|
23
23
|
* @uses protocol/elements, protocol/elementIdAttribute
|
|
24
24
|
* @type property
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* </example>
|
|
19
19
|
*
|
|
20
20
|
* @alias element.getAttribute
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {string} attributeName requested attribute
|
|
22
22
|
* @return {String|null} The value of the attribute, or null if it is not set on the element.
|
|
23
23
|
* @uses protocol/elements, protocol/elementIdAttribute
|
|
24
24
|
* @type property
|
|
@@ -65,7 +65,7 @@ import { parseCSS } from '../../utils/index.js';
|
|
|
65
65
|
* </example>
|
|
66
66
|
*
|
|
67
67
|
* @alias element.getCSSProperty
|
|
68
|
-
* @param {
|
|
68
|
+
* @param {string} cssProperty css property name
|
|
69
69
|
* @return {CSSProperty} The specified css of the element
|
|
70
70
|
*
|
|
71
71
|
*/
|
|
@@ -21,7 +21,7 @@ import { getElementRect } from '../../utils/index.js';
|
|
|
21
21
|
* </example>
|
|
22
22
|
*
|
|
23
23
|
* @alias element.getLocation
|
|
24
|
-
* @param {
|
|
24
|
+
* @param {string} prop can be "x" or "y" to get a result value directly for easier assertions
|
|
25
25
|
* @return {Object|Number} The X and Y coordinates for the element on the page (`{x:number, y:number}`)
|
|
26
26
|
* @uses protocol/elementIdLocation
|
|
27
27
|
* @type property
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* </example>
|
|
12
12
|
*
|
|
13
13
|
* @alias element.getProperty
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {string} property name of the element property
|
|
15
15
|
* @return {Object|String|Boolean|Number|null} the value of the property of the selected element
|
|
16
16
|
*/
|
|
17
17
|
export declare function getProperty(this: WebdriverIO.Element, property: string): Promise<string | number | boolean | HTMLElement | Element | ChildNode | ParentNode | (() => ElementInternals) | (() => void) | {
|
|
@@ -13,7 +13,7 @@ import getPropertyScript from '../../scripts/getProperty.js';
|
|
|
13
13
|
* </example>
|
|
14
14
|
*
|
|
15
15
|
* @alias element.getProperty
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {string} property name of the element property
|
|
17
17
|
* @return {Object|String|Boolean|Number|null} the value of the property of the selected element
|
|
18
18
|
*/
|
|
19
19
|
export function getProperty(property) {
|
|
@@ -25,7 +25,7 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
25
25
|
* </example>
|
|
26
26
|
*
|
|
27
27
|
* @alias react$$
|
|
28
|
-
* @param {
|
|
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
31
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -31,7 +31,7 @@ let resqScript;
|
|
|
31
31
|
* </example>
|
|
32
32
|
*
|
|
33
33
|
* @alias react$$
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {string} selector of React component
|
|
35
35
|
* @param {ReactSelectorOptions=} options React selector options
|
|
36
36
|
* @param {Object=} options.props React props the element should contain
|
|
37
37
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -35,7 +35,7 @@ import type { ReactSelectorOptions } from '../../types.js';
|
|
|
35
35
|
* </example>
|
|
36
36
|
*
|
|
37
37
|
* @alias react$
|
|
38
|
-
* @param {
|
|
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
41
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -41,7 +41,7 @@ let resqScript;
|
|
|
41
41
|
* </example>
|
|
42
42
|
*
|
|
43
43
|
* @alias react$
|
|
44
|
-
* @param {
|
|
44
|
+
* @param {string} selector of React component
|
|
45
45
|
* @param {ReactSelectorOptions=} options React selector options
|
|
46
46
|
* @param {Object=} options.props React props the element should contain
|
|
47
47
|
* @param {Array<any>|number|string|object|boolean=} options.state React state the element should be in
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* </example>
|
|
28
28
|
*
|
|
29
29
|
* @alias element.selectByAttribute
|
|
30
|
-
* @param {
|
|
30
|
+
* @param {string} attribute attribute of option element to get selected
|
|
31
31
|
* @param {String|Number} value value of option element to get selected
|
|
32
32
|
* @uses protocol/findElementFromElement, protocol/elementClick
|
|
33
33
|
* @type action
|
|
@@ -28,7 +28,7 @@ import { getElementFromResponse } from '../../utils/index.js';
|
|
|
28
28
|
* </example>
|
|
29
29
|
*
|
|
30
30
|
* @alias element.selectByAttribute
|
|
31
|
-
* @param {
|
|
31
|
+
* @param {string} attribute attribute of option element to get selected
|
|
32
32
|
* @param {String|Number} value value of option element to get selected
|
|
33
33
|
* @uses protocol/findElementFromElement, protocol/elementClick
|
|
34
34
|
* @type action
|
|
@@ -23,7 +23,7 @@ import { getElementFromResponse } from '../../utils/index.js';
|
|
|
23
23
|
* </example>
|
|
24
24
|
*
|
|
25
25
|
* @alias element.selectByIndexs
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {number} index option index
|
|
27
27
|
* @uses protocol/findElementsFromElement, protocol/elementClick
|
|
28
28
|
* @type action
|
|
29
29
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* get HTML of selector element
|
|
3
3
|
*
|
|
4
|
-
* @param {
|
|
4
|
+
* @param {string} element element to get HTML from
|
|
5
5
|
* @param {Boolean} includeSelectorTag if true, selector tag gets included (uses outerHTML)
|
|
6
6
|
* @return {String} html source
|
|
7
7
|
*/
|
package/build/scripts/getHTML.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* get HTML of selector element
|
|
3
3
|
*
|
|
4
|
-
* @param {
|
|
4
|
+
* @param {string} element element to get HTML from
|
|
5
5
|
* @param {Boolean} includeSelectorTag if true, selector tag gets included (uses outerHTML)
|
|
6
6
|
* @return {String} html source
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* get property from element
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {
|
|
3
|
+
* @param {string} element element with requested property
|
|
4
|
+
* @param {string} property requested property
|
|
5
5
|
* @return {String} the value of the property
|
|
6
6
|
*/
|
|
7
7
|
export default function getProperty(element: HTMLElement, property: keyof HTMLElement): string | number | boolean | HTMLElement | Element | ChildNode | ParentNode | (() => ElementInternals) | (() => void) | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* get property from element
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {
|
|
3
|
+
* @param {string} element element with requested property
|
|
4
|
+
* @param {string} property requested property
|
|
5
5
|
* @return {String} the value of the property
|
|
6
6
|
*/
|
|
7
7
|
export default function getProperty(element, property) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* opens new window via window.open
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
3
|
+
* @param {string} url The URL to be loaded in the newly opened window.
|
|
4
|
+
* @param {string} windowName A string name for the new window.
|
|
5
|
+
* @param {string} windowFeatures An optional parameter listing the features (size, position, scrollbars, etc.) of the new window as a string.
|
|
6
6
|
*
|
|
7
7
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window.open
|
|
8
8
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* opens new window via window.open
|
|
3
|
-
* @param {
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
3
|
+
* @param {string} url The URL to be loaded in the newly opened window.
|
|
4
|
+
* @param {string} windowName A string name for the new window.
|
|
5
|
+
* @param {string} windowFeatures An optional parameter listing the features (size, position, scrollbars, etc.) of the new window as a string.
|
|
6
6
|
*
|
|
7
7
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window.open
|
|
8
8
|
*/
|
package/build/utils/Timer.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Promise-based Timer. Execute fn every tick.
|
|
3
3
|
* When fn is resolved — timer will stop
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
4
|
+
* @param {number} delay - delay between ticks
|
|
5
|
+
* @param {number} timeout - after that time timer will stop
|
|
6
6
|
* @param {Function} fn - function that returns promise. will execute every tick
|
|
7
|
-
* @param {
|
|
7
|
+
* @param {boolean} leading - should be function invoked on start
|
|
8
8
|
* @return {promise} Promise-based Timer.
|
|
9
9
|
*/
|
|
10
10
|
declare class Timer {
|
package/build/utils/Timer.js
CHANGED
|
@@ -3,10 +3,10 @@ const NOOP = () => { };
|
|
|
3
3
|
/**
|
|
4
4
|
* Promise-based Timer. Execute fn every tick.
|
|
5
5
|
* When fn is resolved — timer will stop
|
|
6
|
-
* @param {
|
|
7
|
-
* @param {
|
|
6
|
+
* @param {number} delay - delay between ticks
|
|
7
|
+
* @param {number} timeout - after that time timer will stop
|
|
8
8
|
* @param {Function} fn - function that returns promise. will execute every tick
|
|
9
|
-
* @param {
|
|
9
|
+
* @param {boolean} leading - should be function invoked on start
|
|
10
10
|
* @return {promise} Promise-based Timer.
|
|
11
11
|
*/
|
|
12
12
|
class Timer {
|
|
@@ -6,14 +6,14 @@ interface GetElementProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* transforms a findElement response into a WDIO element
|
|
9
|
-
* @param {
|
|
9
|
+
* @param {string} selector selector that was used to query the element
|
|
10
10
|
* @param {Object} res findElement response
|
|
11
11
|
* @return {Object} WDIO element object
|
|
12
12
|
*/
|
|
13
13
|
export declare const getElement: (this: WebdriverIO.Browser | WebdriverIO.Element, selector?: Selector, res?: ElementReference | Error, props?: GetElementProps) => WebdriverIO.Element;
|
|
14
14
|
/**
|
|
15
15
|
* transforms a findElements response into an array of WDIO elements
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {string} selector selector that was used to query the element
|
|
17
17
|
* @param {Object} res findElements response
|
|
18
18
|
* @return {Array} array of WDIO elements
|
|
19
19
|
*/
|
|
@@ -6,7 +6,7 @@ import { ELEMENT_KEY } from '../constants.js';
|
|
|
6
6
|
import * as browserCommands from '../commands/browser.js';
|
|
7
7
|
/**
|
|
8
8
|
* transforms a findElement response into a WDIO element
|
|
9
|
-
* @param {
|
|
9
|
+
* @param {string} selector selector that was used to query the element
|
|
10
10
|
* @param {Object} res findElement response
|
|
11
11
|
* @return {Object} WDIO element object
|
|
12
12
|
*/
|
|
@@ -63,7 +63,7 @@ export const getElement = function findElement(selector, res, props = { isReactE
|
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* transforms a findElements response into an array of WDIO elements
|
|
66
|
-
* @param {
|
|
66
|
+
* @param {string} selector selector that was used to query the element
|
|
67
67
|
* @param {Object} res findElements response
|
|
68
68
|
* @return {Array} array of WDIO elements
|
|
69
69
|
*/
|
package/build/utils/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare function getBrowserObject(elem: WebdriverIO.Element | WebdriverIO
|
|
|
29
29
|
export declare function parseCSS(cssPropertyValue: string, cssProperty?: string): ParsedCSSValue;
|
|
30
30
|
/**
|
|
31
31
|
* check for unicode character or split string into literals
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {string} value text
|
|
33
33
|
* @return {Array} set of characters or unicode symbols
|
|
34
34
|
*/
|
|
35
35
|
export declare function checkUnicode(value: string, isDevTools?: boolean): string[];
|
package/build/utils/index.js
CHANGED
|
@@ -140,7 +140,7 @@ export function parseCSS(cssPropertyValue, cssProperty) {
|
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
142
|
* check for unicode character or split string into literals
|
|
143
|
-
* @param {
|
|
143
|
+
* @param {string} value text
|
|
144
144
|
* @return {Array} set of characters or unicode symbols
|
|
145
145
|
*/
|
|
146
146
|
export function checkUnicode(value, isDevTools = false) {
|
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": "8.8.
|
|
4
|
+
"version": "8.8.4",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -68,30 +68,30 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@types/node": "^18.0.0",
|
|
71
|
-
"@wdio/config": "8.8.
|
|
71
|
+
"@wdio/config": "8.8.4",
|
|
72
72
|
"@wdio/logger": "8.6.6",
|
|
73
73
|
"@wdio/protocols": "8.8.1",
|
|
74
74
|
"@wdio/repl": "8.6.6",
|
|
75
|
-
"@wdio/types": "8.8.
|
|
76
|
-
"@wdio/utils": "8.8.
|
|
75
|
+
"@wdio/types": "8.8.4",
|
|
76
|
+
"@wdio/utils": "8.8.4",
|
|
77
77
|
"archiver": "^5.0.0",
|
|
78
78
|
"aria-query": "^5.0.0",
|
|
79
79
|
"css-shorthand-properties": "^1.1.1",
|
|
80
80
|
"css-value": "^0.0.1",
|
|
81
|
-
"devtools": "8.8.
|
|
82
|
-
"devtools-protocol": "^0.0.
|
|
81
|
+
"devtools": "8.8.4",
|
|
82
|
+
"devtools-protocol": "^0.0.1130274",
|
|
83
83
|
"grapheme-splitter": "^1.0.2",
|
|
84
84
|
"import-meta-resolve": "^2.1.0",
|
|
85
85
|
"is-plain-obj": "^4.1.0",
|
|
86
86
|
"lodash.clonedeep": "^4.5.0",
|
|
87
87
|
"lodash.zip": "^4.2.0",
|
|
88
88
|
"minimatch": "^9.0.0",
|
|
89
|
-
"puppeteer-core": "19.
|
|
89
|
+
"puppeteer-core": "19.9.1",
|
|
90
90
|
"query-selector-shadow-dom": "^1.0.0",
|
|
91
91
|
"resq": "^1.9.1",
|
|
92
92
|
"rgb2hex": "0.2.5",
|
|
93
93
|
"serialize-error": "^8.0.0",
|
|
94
|
-
"webdriver": "8.8.
|
|
94
|
+
"webdriver": "8.8.4"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "e88a296000de70344fbf19d0d63a54cb1a617427"
|
|
97
97
|
}
|