webdriverio 8.3.3 → 8.3.8
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/cjs/index.d.ts +1 -40
- package/build/cjs/index.d.ts.map +1 -1
- package/build/cjs/index.js +4 -9
- package/build/commands/browser/addCommand.d.ts +0 -1
- package/build/commands/browser/addCommand.d.ts.map +1 -1
- package/build/commands/browser/addCommand.js +1 -1
- package/build/commands/browser/overwriteCommand.d.ts +0 -1
- package/build/commands/browser/overwriteCommand.d.ts.map +1 -1
- package/build/commands/browser/overwriteCommand.js +1 -1
- package/build/commands/browser/savePDF.d.ts +1 -1
- package/build/commands/browser/saveRecordingScreen.d.ts +1 -1
- package/build/commands/browser/saveScreenshot.d.ts +1 -1
- package/build/commands/browser/waitUntil.d.ts +3 -4
- package/build/commands/browser/waitUntil.d.ts.map +1 -1
- package/build/commands/browser/waitUntil.js +2 -3
- package/build/commands/element/nextElement.d.ts +1 -1
- package/build/commands/element/nextElement.d.ts.map +1 -1
- package/build/commands/element/parentElement.d.ts +1 -1
- package/build/commands/element/parentElement.d.ts.map +1 -1
- package/build/commands/element/previousElement.d.ts +1 -1
- package/build/commands/element/previousElement.d.ts.map +1 -1
- package/build/commands/element/saveScreenshot.d.ts +1 -1
- package/build/commands/element/waitForClickable.d.ts +1 -1
- package/build/commands/element/waitForClickable.d.ts.map +1 -1
- package/build/commands/element/waitForDisplayed.d.ts +1 -1
- package/build/commands/element/waitForDisplayed.d.ts.map +1 -1
- package/build/commands/element/waitForEnabled.d.ts +1 -1
- package/build/commands/element/waitForEnabled.d.ts.map +1 -1
- package/build/commands/element/waitForExist.d.ts +1 -1
- package/build/commands/element/waitForExist.d.ts.map +1 -1
- package/build/commands/mock/abort.d.ts +0 -1
- package/build/commands/mock/abort.d.ts.map +1 -1
- package/build/commands/mock/abort.js +1 -1
- package/build/commands/mock/abortOnce.d.ts +0 -1
- package/build/commands/mock/abortOnce.d.ts.map +1 -1
- package/build/commands/mock/abortOnce.js +1 -1
- package/build/commands/mock/clear.d.ts +0 -1
- package/build/commands/mock/clear.d.ts.map +1 -1
- package/build/commands/mock/clear.js +1 -1
- package/build/commands/mock/respond.d.ts +0 -1
- package/build/commands/mock/respond.d.ts.map +1 -1
- package/build/commands/mock/respond.js +1 -1
- package/build/commands/mock/respondOnce.d.ts +0 -1
- package/build/commands/mock/respondOnce.d.ts.map +1 -1
- package/build/commands/mock/respondOnce.js +1 -1
- package/build/commands/mock/restore.d.ts +0 -1
- package/build/commands/mock/restore.d.ts.map +1 -1
- package/build/commands/mock/restore.js +1 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +2 -2
- package/build/types.d.ts +1 -1
- package/build/utils/interception/devtools.d.ts +1 -1
- package/build/utils/interception/types.d.ts +1 -1
- package/package.json +6 -6
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
import type { Options
|
|
2
|
-
import type * as WebDriverTypes from 'webdriver';
|
|
3
|
-
import type { AttachOptions } from '../types.js';
|
|
1
|
+
import type { Options } from '@wdio/types';
|
|
4
2
|
export type RemoteOptions = Options.WebdriverIO & Omit<Options.Testrunner, 'capabilities' | 'rootDir'>;
|
|
5
|
-
/**
|
|
6
|
-
* A method to create a new session with WebdriverIO.
|
|
7
|
-
*
|
|
8
|
-
* <b>
|
|
9
|
-
* NOTE: If you hit "error TS2694: Namespace 'global.WebdriverIO' has no exported member 'Browser'" when using typescript,
|
|
10
|
-
* add "@wdio/globals/types" into tsconfig.json's "types" array will solve it: <code> { "compilerOptions": { "types": ["@wdio/globals/types"] } } </code>
|
|
11
|
-
* </b>
|
|
12
|
-
*
|
|
13
|
-
* @param params Options to create the session with
|
|
14
|
-
* @param remoteModifier Modifier function to change the monad object
|
|
15
|
-
* @return browser object with sessionId
|
|
16
|
-
* @see <a href="https://webdriver.io/docs/typescript">Typescript setup</a>
|
|
17
|
-
*/
|
|
18
|
-
export declare const remote: (params: RemoteOptions, remoteModifier?: ((client: WebDriverTypes.Client, options: Options.WebdriverIO) => WebDriverTypes.Client) | undefined) => Promise<WebdriverIO.Browser>;
|
|
19
|
-
export declare const attach: (attachOptions: AttachOptions) => Promise<WebdriverIO.Browser>;
|
|
20
|
-
/**
|
|
21
|
-
* WebdriverIO allows you to run multiple automated sessions in a single test.
|
|
22
|
-
* This is handy when you're testing features that require multiple users (for example, chat or WebRTC applications).
|
|
23
|
-
*
|
|
24
|
-
* Instead of creating a couple of remote instances where you need to execute common commands like newSession() or url() on each instance,
|
|
25
|
-
* you can simply create a multiremote instance and control all browsers at the same time.
|
|
26
|
-
*
|
|
27
|
-
* <b>
|
|
28
|
-
* NOTE: Multiremote is not meant to execute all your tests in parallel.
|
|
29
|
-
* It is intended to help coordinate multiple browsers and/or mobile devices for special integration tests (e.g. chat applications).
|
|
30
|
-
* </b>
|
|
31
|
-
*
|
|
32
|
-
* @param params capabilities to choose desired devices.
|
|
33
|
-
* @param automationProtocol
|
|
34
|
-
* @return All remote instances, the first result represents the capability defined first in the capability object,
|
|
35
|
-
* the second result the second capability and so on.
|
|
36
|
-
*
|
|
37
|
-
* @see <a href="https://webdriver.io/docs/multiremote">External document and example usage</a>.
|
|
38
|
-
*/
|
|
39
|
-
export declare const multiremote: (params: Capabilities.MultiRemoteCapabilities, { automationProtocol }?: {
|
|
40
|
-
automationProtocol?: string | undefined;
|
|
41
|
-
}) => Promise<WebdriverIO.MultiRemoteBrowser>;
|
|
42
3
|
//# sourceMappingURL=index.d.ts.map
|
package/build/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAA;AAIxD,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,GAAG,SAAS,CAAC,CAAA"}
|
package/build/cjs/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.multiremote = exports.attach = exports.remote = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* A method to create a new session with WebdriverIO.
|
|
6
3
|
*
|
|
@@ -14,16 +11,14 @@ exports.multiremote = exports.attach = exports.remote = void 0;
|
|
|
14
11
|
* @return browser object with sessionId
|
|
15
12
|
* @see <a href="https://webdriver.io/docs/typescript">Typescript setup</a>
|
|
16
13
|
*/
|
|
17
|
-
|
|
14
|
+
exports.remote = async function (params, remoteModifier) {
|
|
18
15
|
const { remote } = await import('../index.js');
|
|
19
16
|
return remote(params, remoteModifier);
|
|
20
17
|
};
|
|
21
|
-
exports.
|
|
22
|
-
const attach = async function (attachOptions) {
|
|
18
|
+
exports.attach = async function (attachOptions) {
|
|
23
19
|
const { attach } = await import('../index.js');
|
|
24
20
|
return attach(attachOptions);
|
|
25
21
|
};
|
|
26
|
-
exports.attach = attach;
|
|
27
22
|
/**
|
|
28
23
|
* WebdriverIO allows you to run multiple automated sessions in a single test.
|
|
29
24
|
* This is handy when you're testing features that require multiple users (for example, chat or WebRTC applications).
|
|
@@ -43,8 +38,8 @@ exports.attach = attach;
|
|
|
43
38
|
*
|
|
44
39
|
* @see <a href="https://webdriver.io/docs/multiremote">External document and example usage</a>.
|
|
45
40
|
*/
|
|
46
|
-
|
|
41
|
+
exports.multiremote = async function (params, { automationProtocol } = {}) {
|
|
47
42
|
const { multiremote } = await import('../index.js');
|
|
48
43
|
return multiremote(params, { automationProtocol });
|
|
49
44
|
};
|
|
50
|
-
|
|
45
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/addCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/addCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overwriteCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/overwriteCommand.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overwriteCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/overwriteCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { WaitUntilOptions } from '../../types.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
3
|
* This wait command is your universal weapon if you want to wait on something. It expects a condition
|
|
5
|
-
* and waits until that condition is fulfilled with a truthy value.
|
|
4
|
+
* and waits until that condition is fulfilled with a truthy value to be returned.
|
|
6
5
|
*
|
|
7
6
|
* A common example is to wait until a certain element contains a certain text (see example).
|
|
8
7
|
*
|
|
@@ -29,7 +28,7 @@ import type { WaitUntilOptions } from '../../types.js';
|
|
|
29
28
|
*
|
|
30
29
|
*
|
|
31
30
|
* @alias browser.waitUntil
|
|
32
|
-
* @param {Function
|
|
31
|
+
* @param {Function} condition condition to wait on until returning a truthy value
|
|
33
32
|
* @param {WaitUntilOptions=} options command options
|
|
34
33
|
* @param {Number=} options.timeout timeout in ms (default: 5000)
|
|
35
34
|
* @param {String=} options.timeoutMsg error message to throw when waitUntil times out
|
|
@@ -39,5 +38,5 @@ import type { WaitUntilOptions } from '../../types.js';
|
|
|
39
38
|
* @type utility
|
|
40
39
|
*
|
|
41
40
|
*/
|
|
42
|
-
export declare function waitUntil(this: WebdriverIO.Browser | WebdriverIO.Element, condition: () =>
|
|
41
|
+
export declare function waitUntil<ReturnValue>(this: WebdriverIO.Browser | WebdriverIO.Element, condition: () => ReturnValue | Promise<ReturnValue>, { timeout, interval, timeoutMsg }?: Partial<WaitUntilOptions>): Promise<Exclude<ReturnValue, boolean>>;
|
|
43
42
|
//# sourceMappingURL=waitUntil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/waitUntil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD
|
|
1
|
+
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/waitUntil.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,SAAS,CAAC,WAAW,EACjC,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,SAAS,EAAE,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,EACnD,EACI,OAAqC,EACrC,QAAuC,EACvC,UAAU,EACb,GAAE,OAAO,CAAC,gBAAgB,CAAM,GAClC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CA4BxC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import Timer from '../../utils/Timer.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
3
|
* This wait command is your universal weapon if you want to wait on something. It expects a condition
|
|
5
|
-
* and waits until that condition is fulfilled with a truthy value.
|
|
4
|
+
* and waits until that condition is fulfilled with a truthy value to be returned.
|
|
6
5
|
*
|
|
7
6
|
* A common example is to wait until a certain element contains a certain text (see example).
|
|
8
7
|
*
|
|
@@ -29,7 +28,7 @@ import Timer from '../../utils/Timer.js';
|
|
|
29
28
|
*
|
|
30
29
|
*
|
|
31
30
|
* @alias browser.waitUntil
|
|
32
|
-
* @param {Function
|
|
31
|
+
* @param {Function} condition condition to wait on until returning a truthy value
|
|
33
32
|
* @param {WaitUntilOptions=} options command options
|
|
34
33
|
* @param {Number=} options.timeout timeout in ms (default: 5000)
|
|
35
34
|
* @param {String=} options.timeoutMsg error message to throw when waitUntil times out
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* @return {Element}
|
|
22
22
|
* @type utility
|
|
23
23
|
*/
|
|
24
|
-
export declare function nextElement(this: WebdriverIO.Element): import("
|
|
24
|
+
export declare function nextElement(this: WebdriverIO.Element): import("../..").ChainablePromiseElement<WebdriverIO.Element>;
|
|
25
25
|
//# sourceMappingURL=nextElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/nextElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,wBAAgB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"nextElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/nextElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,wBAAgB,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,gEAIrD"}
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* @return {Element}
|
|
22
22
|
* @type utility
|
|
23
23
|
*/
|
|
24
|
-
export declare function parentElement(this: WebdriverIO.Element): import("
|
|
24
|
+
export declare function parentElement(this: WebdriverIO.Element): import("../..").ChainablePromiseElement<WebdriverIO.Element>;
|
|
25
25
|
//# sourceMappingURL=parentElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parentElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/parentElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"parentElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/parentElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,gEAIvD"}
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* @return {Element}
|
|
22
22
|
* @type utility
|
|
23
23
|
*/
|
|
24
|
-
export declare function previousElement(this: WebdriverIO.Element): import("
|
|
24
|
+
export declare function previousElement(this: WebdriverIO.Element): import("../..").ChainablePromiseElement<WebdriverIO.Element>;
|
|
25
25
|
//# sourceMappingURL=previousElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previousElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/previousElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,eAAe,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"previousElement.d.ts","sourceRoot":"","sources":["../../../src/commands/element/previousElement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,eAAe,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,gEAIzD"}
|
|
@@ -30,5 +30,5 @@ import type { WaitForOptions } from '../../types.js';
|
|
|
30
30
|
* @return {Boolean} `true` if element is clickable (or doesn't if flag is set)
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
|
-
export declare function waitForClickable(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<
|
|
33
|
+
export declare function waitForClickable(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<never>;
|
|
34
34
|
//# sourceMappingURL=waitForClickable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForClickable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,gBAAgB,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,
|
|
1
|
+
{"version":3,"file":"waitForClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForClickable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,gBAAgB,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,kBAMzB"}
|
|
@@ -40,5 +40,5 @@ import type { WaitForOptions } from '../../types.js';
|
|
|
40
40
|
* @type utility
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
|
-
export declare function waitForDisplayed(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<
|
|
43
|
+
export declare function waitForDisplayed(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<never>;
|
|
44
44
|
//# sourceMappingURL=waitForDisplayed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForDisplayed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAsB,gBAAgB,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,
|
|
1
|
+
{"version":3,"file":"waitForDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForDisplayed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAsB,gBAAgB,CAClC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,kBAMzB"}
|
|
@@ -42,5 +42,5 @@ import type { WaitForOptions } from '../../types.js';
|
|
|
42
42
|
* @type utility
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
|
-
export declare function waitForEnabled(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<
|
|
45
|
+
export declare function waitForEnabled(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<never>;
|
|
46
46
|
//# sourceMappingURL=waitForEnabled.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,cAAc,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAoG,EACvG,GAAE,cAAmB,
|
|
1
|
+
{"version":3,"file":"waitForEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,cAAc,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAoG,EACvG,GAAE,cAAmB,kBAazB"}
|
|
@@ -42,5 +42,5 @@ import type { WaitForOptions } from '../../types.js';
|
|
|
42
42
|
* @type utility
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
|
-
export declare function waitForExist(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<
|
|
45
|
+
export declare function waitForExist(this: WebdriverIO.Element, { timeout, interval, reverse, timeoutMsg }?: WaitForOptions): Promise<never>;
|
|
46
46
|
//# sourceMappingURL=waitForExist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForExist.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForExist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,YAAY,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAqG,EACxG,GAAE,cAAmB,
|
|
1
|
+
{"version":3,"file":"waitForExist.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForExist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,YAAY,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAqG,EACxG,GAAE,cAAmB,kBAMzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abort.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/abort.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abort.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/abort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abortOnce.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/abortOnce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abortOnce.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/abortOnce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clear.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/clear.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clear.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/clear.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"respond.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/respond.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"respond.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/respond.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"respondOnce.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/respondOnce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"respondOnce.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/respondOnce.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/restore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"restore.d.ts","sourceRoot":"","sources":["../../../src/commands/mock/restore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAqC,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAqC,MAAM,aAAa,CAAA;AAkC7E,eAAO,MAAM,WAAW,wCAAwC,CAAA;AAEhE,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,UAAU,CAgStF,CAAA;AAED,eAAO,MAAM,uBAAuB,UAA0E,CAAA;AAE9G,eAAO,MAAM,uBAAuB;;;;;CAKnC,CAAA;AAED,eAAO,MAAM,mBAAmB,2BAA2B,CAAA;AAC3D,eAAO,MAAM,aAAa,QAAQ,CAAA;AAClC,eAAO,MAAM,aAAa,UAAU,CAAA;AAEpC,eAAO,MAAM,YAAY,UAKxB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,GAAG;IACZ;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DG,CAAA"}
|
package/build/constants.js
CHANGED
|
@@ -2,8 +2,6 @@ import { fileURLToPath } from 'node:url';
|
|
|
2
2
|
import { dirname, resolve } from 'node:path';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
4
|
import { UNICODE_CHARACTERS } from '@wdio/utils';
|
|
5
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
const require = createRequire(import.meta.url);
|
|
7
5
|
var SupportedAutomationProtocols;
|
|
8
6
|
(function (SupportedAutomationProtocols) {
|
|
9
7
|
SupportedAutomationProtocols["webdriver"] = "webdriver";
|
|
@@ -52,6 +50,8 @@ export const WDIO_DEFAULTS = {
|
|
|
52
50
|
throw new Error(`Currently only "webdriver" and "devtools" is supproted as automationProtocol, you set "${param}"`);
|
|
53
51
|
}
|
|
54
52
|
try {
|
|
53
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
54
|
+
const require = createRequire(import.meta.url);
|
|
55
55
|
const id = param === SupportedAutomationProtocols.stub
|
|
56
56
|
? resolve(__dirname, '..', 'build', param)
|
|
57
57
|
: param;
|
package/build/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node"
|
|
1
|
+
/// <reference types="node" />
|
|
2
2
|
import type { EventEmitter } from 'node:events';
|
|
3
3
|
import type { AttachOptions as DevToolsAttachOptions } from 'devtools';
|
|
4
4
|
import type { SessionFlags, AttachOptions as WebDriverAttachOptions } from 'webdriver';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="node"
|
|
1
|
+
/// <reference types="node" />
|
|
2
2
|
import type { CDPSession } from 'puppeteer-core/lib/esm/puppeteer/common/Connection.js';
|
|
3
3
|
import type { Protocol } from 'devtools-protocol';
|
|
4
4
|
import Interception from './index.js';
|
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.3.
|
|
4
|
+
"version": "8.3.8",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@types/node": "^18.0.0",
|
|
70
70
|
"@wdio/config": "8.3.2",
|
|
71
71
|
"@wdio/logger": "8.1.0",
|
|
72
|
-
"@wdio/protocols": "8.
|
|
72
|
+
"@wdio/protocols": "8.3.5",
|
|
73
73
|
"@wdio/repl": "8.1.0",
|
|
74
74
|
"@wdio/types": "8.3.0",
|
|
75
75
|
"@wdio/utils": "8.3.0",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"aria-query": "^5.0.0",
|
|
78
78
|
"css-shorthand-properties": "^1.1.1",
|
|
79
79
|
"css-value": "^0.0.1",
|
|
80
|
-
"devtools": "8.3.
|
|
81
|
-
"devtools-protocol": "^0.0.
|
|
80
|
+
"devtools": "8.3.8",
|
|
81
|
+
"devtools-protocol": "^0.0.1103684",
|
|
82
82
|
"grapheme-splitter": "^1.0.2",
|
|
83
83
|
"import-meta-resolve": "^2.1.0",
|
|
84
84
|
"is-plain-obj": "^4.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"resq": "^1.9.1",
|
|
91
91
|
"rgb2hex": "0.2.5",
|
|
92
92
|
"serialize-error": "^8.0.0",
|
|
93
|
-
"webdriver": "8.3.
|
|
93
|
+
"webdriver": "8.3.8"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "a32ecf2abb9202d532fb98b7c23ceed9dbb2f6ee"
|
|
96
96
|
}
|