webdriverio 9.5.7 → 9.6.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/clock.d.ts.map +1 -1
- package/build/commands/browser/addInitScript.d.ts +26 -26
- package/build/commands/browser/addInitScript.d.ts.map +1 -1
- package/build/commands/browser/downloadFile.d.ts.map +1 -1
- package/build/commands/browser/execute.d.ts.map +1 -1
- package/build/commands/browser/executeAsync.d.ts.map +1 -1
- package/build/commands/browser/mockClearAll.d.ts +2 -2
- package/build/commands/browser/react$$.d.ts.map +1 -1
- package/build/commands/browser/react$.d.ts.map +1 -1
- package/build/commands/browser/savePDF.d.ts.map +1 -1
- package/build/commands/browser/saveRecordingScreen.d.ts.map +1 -1
- package/build/commands/browser/saveScreenshot.d.ts.map +1 -1
- package/build/commands/browser/switchFrame.d.ts +1 -5
- package/build/commands/browser/switchFrame.d.ts.map +1 -1
- package/build/commands/browser/uploadFile.d.ts.map +1 -1
- package/build/commands/constant.d.ts +1 -0
- package/build/commands/constant.d.ts.map +1 -1
- package/build/commands/element/isDisplayed.d.ts +30 -5
- package/build/commands/element/isDisplayed.d.ts.map +1 -1
- package/build/commands/element/react$$.d.ts.map +1 -1
- package/build/commands/element/react$.d.ts.map +1 -1
- package/build/commands/element/saveScreenshot.d.ts.map +1 -1
- package/build/environment.d.ts +29 -0
- package/build/environment.d.ts.map +1 -0
- package/build/index.js +1850 -1400
- package/build/node/downloadFile.d.ts +5 -0
- package/build/node/downloadFile.d.ts.map +1 -0
- package/build/node/saveElementScreenshot.d.ts +20 -0
- package/build/node/saveElementScreenshot.d.ts.map +1 -0
- package/build/node/savePDF.d.ts +19 -0
- package/build/node/savePDF.d.ts.map +1 -0
- package/build/node/saveRecordingScreen.d.ts +5 -0
- package/build/node/saveRecordingScreen.d.ts.map +1 -0
- package/build/node/saveScreenshot.d.ts +28 -0
- package/build/node/saveScreenshot.d.ts.map +1 -0
- package/build/node/uploadFile.d.ts +5 -0
- package/build/node/uploadFile.d.ts.map +1 -0
- package/build/node/utils.d.ts +11 -0
- package/build/node/utils.d.ts.map +1 -0
- package/build/node.d.ts +2 -0
- package/build/node.d.ts.map +1 -0
- package/build/node.js +8403 -0
- package/build/session/context.d.ts +24 -0
- package/build/session/context.d.ts.map +1 -1
- package/build/session/index.d.ts +1 -1
- package/build/session/index.d.ts.map +1 -1
- package/build/session/polyfill.d.ts +1 -1
- package/build/session/polyfill.d.ts.map +1 -1
- package/build/utils/actions/key.d.ts.map +1 -1
- package/build/utils/index.d.ts +1 -5
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/interception/index.d.ts.map +1 -1
- package/package.json +6 -4
package/build/clock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clock.d.ts","sourceRoot":"","sources":["../src/clock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAIzF,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,OAAO,EAAE,cAAc,CAAA;QACvB,YAAY,EAAE;YACV,OAAO,EAAE,OAAO,OAAO,CAAA;SAC1B,CAAA;KACJ;CACJ;
|
|
1
|
+
{"version":3,"file":"clock.d.ts","sourceRoot":"","sources":["../src/clock.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAIzF,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,OAAO,EAAE,cAAc,CAAA;QACvB,YAAY,EAAE;YACV,OAAO,EAAE,OAAO,OAAO,CAAA;SAC1B,CAAA;KACJ;CACJ;AAaD,qBAAa,YAAY;;gBAKT,OAAO,EAAE,WAAW,CAAC,OAAO;IAIxC;;;;;;OAMG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,oBAAoB;IA2C5C;;;;;;;;;;;;;;;;;OAiBG;IACG,OAAO;IAKb;;;;;;;;;;;;;;;;;;OAkBG;IACG,IAAI,CAAC,EAAE,EAAE,MAAM;IAIrB;;;;;;;;;;;;;;;;OAgBG;IACG,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAI1C"}
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
export interface InitScript<Payload = undefined> {
|
|
2
|
-
remove: () => Promise<void>;
|
|
3
|
-
on: (event: 'data', listener: (data: Payload) => void) => void;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Callback to emit data from the browser back to the Node.js environment. In order to receive the
|
|
7
|
-
* data returned by the callback function you have to listen to the `data` event, e.g.
|
|
8
|
-
*
|
|
9
|
-
* ```js
|
|
10
|
-
* const script = await browser.addInitScript((emit) => {
|
|
11
|
-
* emit('hello')
|
|
12
|
-
* })
|
|
13
|
-
* script.on('data', (data) => {
|
|
14
|
-
* console.log(data) // prints: hello
|
|
15
|
-
* })
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @param {any} data The data to emit.
|
|
19
|
-
*/
|
|
20
|
-
type InitScriptCallback<Payload> = (data: Payload) => void;
|
|
21
|
-
type InitScriptFunction<Payload> = ((emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
22
|
-
type InitScriptFunctionArg1<Payload, Arg1> = ((arg1: Arg1, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
23
|
-
type InitScriptFunctionArg2<Payload, Arg1, Arg2> = ((arg1: Arg1, arg2: Arg2, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
24
|
-
type InitScriptFunctionArg3<Payload, Arg1, Arg2, Arg3> = ((arg1: Arg1, arg2: Arg2, arg3: Arg3, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
25
|
-
type InitScriptFunctionArg4<Payload, Arg1, Arg2, Arg3, Arg4> = ((arg1: Arg1, arg2: Arg2, arg3: Arg3, arg4: Arg4, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
26
|
-
type InitScriptFunctionArg5<Payload, Arg1, Arg2, Arg3, Arg4, Arg5> = ((arg1: Arg1, arg2: Arg2, arg3: Arg3, arg4: Arg4, arg5: Arg5, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
27
1
|
/**
|
|
28
2
|
* Adds a script which would be evaluated in one of the following scenarios:
|
|
29
3
|
*
|
|
@@ -82,5 +56,31 @@ export declare function addInitScript<Payload, Arg1, Arg2>(this: WebdriverIO.Bro
|
|
|
82
56
|
export declare function addInitScript<Payload, Arg1, Arg2, Arg3>(this: WebdriverIO.Browser, script: string | InitScriptFunctionArg3<Payload, Arg1, Arg2, Arg3>, arg1: Arg1, arg2: Arg2, arg3: Arg3): Promise<InitScript<Payload>>;
|
|
83
57
|
export declare function addInitScript<Payload, Arg1, Arg2, Arg3, Arg4>(this: WebdriverIO.Browser, script: string | InitScriptFunctionArg4<Payload, Arg1, Arg2, Arg3, Arg4>, arg1: Arg1, arg2: Arg2, arg3: Arg3, arg4: Arg4): Promise<InitScript<Payload>>;
|
|
84
58
|
export declare function addInitScript<Payload, Arg1, Arg2, Arg3, Arg4, Arg5>(this: WebdriverIO.Browser, script: string | InitScriptFunctionArg5<Payload, Arg1, Arg2, Arg3, Arg4, Arg5>, arg1: Arg1, arg2: Arg2, arg3: Arg3, arg4: Arg4, arg5: Arg5): Promise<InitScript<Payload>>;
|
|
59
|
+
/**
|
|
60
|
+
* Callback to emit data from the browser back to the Node.js environment. In order to receive the
|
|
61
|
+
* data returned by the callback function you have to listen to the `data` event, e.g.
|
|
62
|
+
*
|
|
63
|
+
* ```js
|
|
64
|
+
* const script = await browser.addInitScript((emit) => {
|
|
65
|
+
* emit('hello')
|
|
66
|
+
* })
|
|
67
|
+
* script.on('data', (data) => {
|
|
68
|
+
* console.log(data) // prints: hello
|
|
69
|
+
* })
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param {any} data The data to emit.
|
|
73
|
+
*/
|
|
74
|
+
type InitScriptCallback<Payload> = (data: Payload) => void;
|
|
75
|
+
type InitScriptFunction<Payload> = ((emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
76
|
+
type InitScriptFunctionArg1<Payload, Arg1> = ((arg1: Arg1, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
77
|
+
type InitScriptFunctionArg2<Payload, Arg1, Arg2> = ((arg1: Arg1, arg2: Arg2, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
78
|
+
type InitScriptFunctionArg3<Payload, Arg1, Arg2, Arg3> = ((arg1: Arg1, arg2: Arg2, arg3: Arg3, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
79
|
+
type InitScriptFunctionArg4<Payload, Arg1, Arg2, Arg3, Arg4> = ((arg1: Arg1, arg2: Arg2, arg3: Arg3, arg4: Arg4, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
80
|
+
type InitScriptFunctionArg5<Payload, Arg1, Arg2, Arg3, Arg4, Arg5> = ((arg1: Arg1, arg2: Arg2, arg3: Arg3, arg4: Arg4, arg5: Arg5, emit: InitScriptCallback<Payload>) => void | Promise<void>);
|
|
81
|
+
export interface InitScript<Payload = undefined> {
|
|
82
|
+
remove: () => Promise<void>;
|
|
83
|
+
on: (event: 'data', listener: (data: Payload) => void) => void;
|
|
84
|
+
}
|
|
85
85
|
export {};
|
|
86
86
|
//# sourceMappingURL=addInitScript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addInitScript.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/addInitScript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addInitScript.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/addInitScript.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,wBAAsB,aAAa,CAAC,OAAO,EACvC,IAAI,EAAE,WAAW,CAAC,OA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AI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,CAAC,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AAC1J,KAAK,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,CAAC,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AAC5K,KAAK,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,CAAC,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;AAE9L,MAAM,WAAW,UAAU,CAAC,OAAO,GAAG,SAAS;IAC3C,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3B,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAA;CACjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/downloadFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/downloadFile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,YAAY,CAC9B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACxB,OAAO,CAAC,MAAM,CAAC,CAKjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/execute.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,OAAO,CAAC,WAAW,EAAE,cAAc,SAAS,OAAO,EAAE,EACvE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAC1D,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,EAAE,cAAc,KAAK,WAAW,CAAC,EAChE,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAuCtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,OAAO,EAAE,EAC5E,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAC1D,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EACjG,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,OAAO,EAAE,EAC5E,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAC1D,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EACjG,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAiDtB"}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
headers: { 'Content-Type': 'application/javascript' }
|
|
12
12
|
})
|
|
13
13
|
|
|
14
|
-
await browser.url('
|
|
14
|
+
await browser.url('https://guinea-pig.webdriver.io/')
|
|
15
15
|
console.log(docMock.calls.length, jsMock.calls.length) // returns "1 4"
|
|
16
16
|
|
|
17
|
-
await browser.url('
|
|
17
|
+
await browser.url('https://guinea-pig.webdriver.io/')
|
|
18
18
|
console.log(docMock.calls.length, jsMock.calls.length) // returns "2 4" (JavaScript comes from cache)
|
|
19
19
|
|
|
20
20
|
await browser.mockClearAll()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$$.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$$.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,qCAUxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/react$.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,MAAM,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,gCASxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"savePDF.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/savePDF.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"savePDF.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/savePDF.ts"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,eAAe,gCAM5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveRecordingScreen.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveRecordingScreen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"saveRecordingScreen.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveRecordingScreen.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,mBAAmB,CACrC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,gCAMnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveScreenshot.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveScreenshot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"saveScreenshot.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/saveScreenshot.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,cAAc,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,gCAMnB"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type FlatContextTree } from '../../session/context.js';
|
|
2
2
|
import type { ChainablePromiseElement } from '../../types.js';
|
|
3
|
-
type FlatContextTree = Omit<local.BrowsingContextInfo, 'children'> & {
|
|
4
|
-
children: string[];
|
|
5
|
-
};
|
|
6
3
|
/**
|
|
7
4
|
* Switches the active context to a frame, e.g. an iframe on the page. There are multiple ways you can query a frame
|
|
8
5
|
* on the page:
|
|
@@ -59,5 +56,4 @@ type FlatContextTree = Omit<local.BrowsingContextInfo, 'children'> & {
|
|
|
59
56
|
* @returns {Promise<string>} the current active context id
|
|
60
57
|
*/
|
|
61
58
|
export declare function switchFrame(this: WebdriverIO.Browser, context: WebdriverIO.Element | ChainablePromiseElement | string | null | ((tree: FlatContextTree) => boolean | Promise<boolean>)): Promise<string | void>;
|
|
62
|
-
export {};
|
|
63
59
|
//# sourceMappingURL=switchFrame.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switchFrame.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/switchFrame.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"switchFrame.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/switchFrame.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAIlF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAI7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,WAAW,CAAC,OAAO,GAAG,uBAAuB,GAAG,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,eAAe,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,0BA8OnI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadFile.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/uploadFile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uploadFile.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/uploadFile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,SAAS,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAKjB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TouchAction, TouchActions } from '../types.js';
|
|
2
2
|
export declare const SCRIPT_PREFIX = "/* __wdio script__ */";
|
|
3
3
|
export declare const SCRIPT_SUFFIX = "/* __wdio script end__ */";
|
|
4
|
+
export declare const resqScript: string;
|
|
4
5
|
interface FormattedTouchAction extends Omit<TouchAction, 'element'> {
|
|
5
6
|
element?: string;
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/commands/constant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ5D,eAAO,MAAM,aAAa,0BAA0B,CAAA;AACpD,eAAO,MAAM,aAAa,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/commands/constant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ5D,eAAO,MAAM,aAAa,0BAA0B,CAAA;AACpD,eAAO,MAAM,aAAa,8BAA8B,CAAA;AAMxD,eAAO,MAAM,UAAU,QAAmB,CAAA;AAE1C,UAAU,oBAAqB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,gBAAgB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,oBAAoB,CAAA;CACjC;AAED,eAAO,MAAM,UAAU,UACZ,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,WACvC,YAAY,EAAE,KACxB,gBAAgB,EA4ClB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAY,gBAAgB,SA8B1D,CAAA;AAED,eAAO,MAAM,WAAW,SACd,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,WACtC,YAAY,kBAgBxB,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
interface IsDisplayedParams {
|
|
2
|
-
withinViewport?: boolean;
|
|
3
|
-
}
|
|
4
1
|
/**
|
|
5
2
|
*
|
|
6
|
-
* Return true if the selected DOM-element is displayed (even when the element is outside the viewport).
|
|
7
|
-
*
|
|
3
|
+
* Return true if the selected DOM-element is displayed (even when the element is outside the viewport). It is using
|
|
4
|
+
* the [`checkVisibility`](https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#visibilityproperty)
|
|
5
|
+
* method provided by the browser to determine if an element is being displayed or not. Since WebdriverIO acts as a
|
|
6
|
+
* real user, the default values for the `contentVisibilityAuto`, `opacityProperty`, and `visibilityProperty` flags
|
|
7
|
+
* are set to `true` to default to a more strict behavior. This means that the command will check if the element is
|
|
8
|
+
* visible due to the value of its `content-visibility`, `opacity`, and `visibility` properties.
|
|
9
|
+
*
|
|
10
|
+
* If you want to also verify that the element is also within the viewport, provide the `withinViewport` flag to the command.
|
|
8
11
|
*
|
|
9
12
|
* :::info
|
|
10
13
|
*
|
|
@@ -85,5 +88,27 @@ interface IsDisplayedParams {
|
|
|
85
88
|
*
|
|
86
89
|
*/
|
|
87
90
|
export declare function isDisplayed(this: WebdriverIO.Element, commandParams?: IsDisplayedParams): Promise<boolean>;
|
|
91
|
+
interface IsDisplayedParams {
|
|
92
|
+
/**
|
|
93
|
+
* `true` to check if the element is within the viewport. false by default.
|
|
94
|
+
*/
|
|
95
|
+
withinViewport?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* `true` to check if the element content-visibility property has (or inherits) the value auto,
|
|
98
|
+
* and it is currently skipping its rendering. `true` by default.
|
|
99
|
+
* @default true
|
|
100
|
+
*/
|
|
101
|
+
contentVisibilityAuto?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* `true` to check if the element opacity property has (or inherits) a value of 0. `true` by default.
|
|
104
|
+
* @default true
|
|
105
|
+
*/
|
|
106
|
+
opacityProperty?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* `true` to check if the element is invisible due to the value of its visibility property. `true` by default.
|
|
109
|
+
* @default true
|
|
110
|
+
*/
|
|
111
|
+
visibilityProperty?: boolean;
|
|
112
|
+
}
|
|
88
113
|
export {};
|
|
89
114
|
//# sourceMappingURL=isDisplayed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwFG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,aAAa,GAAE,iBAAkC,oBA8CpD;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$$.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react$$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$$.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,OAAO,CACzB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,qCAYxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react$.d.ts","sourceRoot":"","sources":["../../../src/commands/element/react$.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,MAAM,CACxB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,KAAU,EAAE,KAAU,EAAE,GAAE,oBAAyB,gCAUxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saveScreenshot.d.ts","sourceRoot":"","sources":["../../../src/commands/element/saveScreenshot.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"saveScreenshot.d.ts","sourceRoot":"","sources":["../../../src/commands/element/saveScreenshot.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,cAAc,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,QAAQ,EAAE,MAAM,gCAMnB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type fs from 'node:fs';
|
|
2
|
+
import type { downloadFile } from './node/downloadFile.js';
|
|
3
|
+
import type { savePDF } from './node/savePDF.js';
|
|
4
|
+
import type { saveRecordingScreen } from './node/saveRecordingScreen.js';
|
|
5
|
+
import type { uploadFile } from './node/uploadFile.js';
|
|
6
|
+
import type { saveScreenshot } from './node/saveScreenshot.js';
|
|
7
|
+
import type { saveElementScreenshot } from './node/saveElementScreenshot.js';
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const isNode: boolean;
|
|
12
|
+
export interface EnvironmentDependencies {
|
|
13
|
+
readFileSync: typeof fs.readFileSync;
|
|
14
|
+
downloadFile: typeof downloadFile;
|
|
15
|
+
savePDF: typeof savePDF;
|
|
16
|
+
saveRecordingScreen: typeof saveRecordingScreen;
|
|
17
|
+
uploadFile: typeof uploadFile;
|
|
18
|
+
saveScreenshot: typeof saveScreenshot;
|
|
19
|
+
saveElementScreenshot: typeof saveElementScreenshot;
|
|
20
|
+
osType: () => string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Holder for environment dependencies. These dependencies cannot
|
|
24
|
+
* be used during the module instantiation.
|
|
25
|
+
*/
|
|
26
|
+
export declare const environment: {
|
|
27
|
+
value: EnvironmentDependencies;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAA;AAE7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,MAAM,SAAwD,CAAA;AAE3E,MAAM,WAAW,uBAAuB;IACpC,YAAY,EAAE,OAAO,EAAE,CAAC,YAAY,CAAA;IAEpC,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;IAChD,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,qBAAqB,EAAE,OAAO,qBAAqB,CAAA;IACnD,MAAM,EAAE,MAAM,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE;IACtB,KAAK,EAAE,uBAAuB,CAAC;CA4BlC,CAAA"}
|