webdriverio 9.0.7 → 9.0.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/commands/browser/deleteCookies.d.ts +3 -3
- package/build/commands/browser/deleteCookies.d.ts.map +1 -1
- package/build/commands/browser/execute.d.ts.map +1 -1
- package/build/commands/browser/executeAsync.d.ts +6 -1
- package/build/commands/browser/executeAsync.d.ts.map +1 -1
- package/build/commands/browser/getCookies.d.ts +9 -4
- package/build/commands/browser/getCookies.d.ts.map +1 -1
- package/build/commands/browser/setCookies.d.ts.map +1 -1
- package/build/commands/browser/setViewport.d.ts.map +1 -1
- package/build/commands/constant.d.ts +2 -0
- package/build/commands/constant.d.ts.map +1 -1
- package/build/commands/element/execute.d.ts.map +1 -1
- package/build/commands/element/executeAsync.d.ts +6 -1
- package/build/commands/element/executeAsync.d.ts.map +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +453 -307
- package/build/polyfill.d.ts +10 -0
- package/build/polyfill.d.ts.map +1 -0
- package/build/scripts/customElement.d.ts.map +1 -1
- package/build/scripts/customElement.js +10 -0
- package/build/utils/bidi/error.d.ts +6 -0
- package/build/utils/bidi/error.d.ts.map +1 -0
- package/build/utils/bidi/index.d.ts +2 -2
- package/build/utils/bidi/index.d.ts.map +1 -1
- package/build/utils/getElementObject.d.ts +1 -1
- package/build/utils/getElementObject.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import type { remote } from 'webdriver';
|
|
1
2
|
/**
|
|
2
3
|
* Delete cookies visible to the current page. By providing a cookie name it
|
|
3
4
|
* just removes the single cookie or more when multiple names are passed.
|
|
4
5
|
*
|
|
5
6
|
* @alias browser.deleteCookies
|
|
6
|
-
* @param {
|
|
7
|
-
* @uses webdriver/deleteAllCookies,webdriver/deleteCookie
|
|
7
|
+
* @param {remote.StorageCookieFilter[]} filter Use the filter property to identify and delete specific cookies based on matching criteria.
|
|
8
8
|
* @example https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/deleteCookies/example.js#L9-L29
|
|
9
9
|
* @example https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/deleteCookies/example.js#L31-L35
|
|
10
10
|
*/
|
|
11
|
-
export declare function deleteCookies(this: WebdriverIO.Browser,
|
|
11
|
+
export declare function deleteCookies(this: WebdriverIO.Browser, filter?: string | string[] | remote.StorageCookieFilter | remote.StorageCookieFilter[]): Promise<void>;
|
|
12
12
|
//# sourceMappingURL=deleteCookies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"deleteCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/deleteCookies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAC/B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,EAAE,GACvF,OAAO,CAAC,IAAI,CAAC,CA6Cf"}
|
|
@@ -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,GAAG,EAAE,EACnE,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,CAoCtB"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* :::warning
|
|
3
|
+
* The `executeAsync` command is deprecated and will be removed in a future version.
|
|
4
|
+
* Please use the `execute` command instead as it provides better support for
|
|
5
|
+
* error handling via `async`/`await`.
|
|
6
|
+
* :::
|
|
2
7
|
*
|
|
3
8
|
* Inject a snippet of JavaScript into the page for execution in the context of the currently selected
|
|
4
9
|
* frame. The executed script is assumed to be asynchronous and must signal that is done by invoking
|
|
@@ -39,7 +44,7 @@
|
|
|
39
44
|
*
|
|
40
45
|
* @see https://w3c.github.io/webdriver/webdriver-spec.html#dfn-execute-async-script
|
|
41
46
|
* @type protocol
|
|
42
|
-
*
|
|
47
|
+
* @deprecated Please use `execute` instead
|
|
43
48
|
*/
|
|
44
49
|
export declare function executeAsync<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser, script: string | ((...args: [...innerArgs: InnerArguments, callback: (result?: ReturnValue) => void]) => void), ...args: InnerArguments): Promise<ReturnValue>;
|
|
45
50
|
//# sourceMappingURL=executeAsync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/executeAsync.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACxE,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,CA4CtB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Cookie } from '@wdio/protocols';
|
|
2
|
+
import type { remote } from 'webdriver';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* Retrieve a [cookie](https://w3c.github.io/webdriver/webdriver-spec.html#cookies)
|
|
@@ -22,14 +23,18 @@ import type { Cookie } from '@wdio/protocols';
|
|
|
22
23
|
// { name: 'test', value: '123' },
|
|
23
24
|
// { name: 'test2', value: '456' }
|
|
24
25
|
// ]
|
|
26
|
+
|
|
27
|
+
// filter cookies by domain
|
|
28
|
+
const stagingCookies = await browser.getCookies({
|
|
29
|
+
domain: 'staging.myapplication.com'
|
|
30
|
+
})
|
|
25
31
|
})
|
|
26
32
|
* </example>
|
|
27
33
|
*
|
|
28
34
|
* @alias browser.getCookies
|
|
29
|
-
* @param {
|
|
30
|
-
* @return {
|
|
31
|
-
* @uses webdriver/getAllCookies
|
|
35
|
+
* @param {remote.StorageCookieFilter} filter an object that allows to filter for cookies with specific attributes
|
|
36
|
+
* @return {Cookie[]} requested cookies
|
|
32
37
|
*
|
|
33
38
|
*/
|
|
34
|
-
export declare function getCookies(this: WebdriverIO.Browser,
|
|
39
|
+
export declare function getCookies(this: WebdriverIO.Browser, filter?: string | string[] | remote.StorageCookieFilter): Promise<Cookie[]>;
|
|
35
40
|
//# sourceMappingURL=getCookies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getCookies.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAIvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC,mBAAmB,GACxD,OAAO,CAAC,MAAM,EAAE,CAAC,CAgBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setCookies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"setCookies.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setCookies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,wBAAsB,UAAU,CAC5B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,iBAuChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setViewport.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setViewport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setViewport.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/setViewport.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,OAAO,EAAE,kBAAkB,iBA+B9B"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { TouchAction, TouchActions } from '../types.js';
|
|
2
|
+
export declare const SCRIPT_PREFIX = "/* __wdio script__ */";
|
|
3
|
+
export declare const SCRIPT_SUFFIX = "/* __wdio script end__ */";
|
|
2
4
|
interface FormattedTouchAction extends Omit<TouchAction, 'element'> {
|
|
3
5
|
element?: string;
|
|
4
6
|
}
|
|
@@ -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;
|
|
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;AAExD,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/execute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/commands/element/execute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAsB,OAAO,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACnE,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,KAAK,WAAW,CAAC,EAC1F,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAGtB"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* :::warning
|
|
3
|
+
* The `executeAsync` command is deprecated and will be removed in a future version.
|
|
4
|
+
* Please use the `execute` command instead as it provides better support for
|
|
5
|
+
* error handling via `async`/`await`.
|
|
6
|
+
* :::
|
|
2
7
|
*
|
|
3
8
|
* Inject a snippet of JavaScript into the page for execution in the context of the currently selected
|
|
4
9
|
* frame using the given element as scope, because it is on the element scope it means that WebdriverIO will
|
|
@@ -42,7 +47,7 @@
|
|
|
42
47
|
*
|
|
43
48
|
* @see https://w3c.github.io/webdriver/webdriver-spec.html#dfn-execute-async-script
|
|
44
49
|
* @type protocol
|
|
45
|
-
*
|
|
50
|
+
* @deprecated Please use `execute` instead
|
|
46
51
|
*/
|
|
47
52
|
export declare function executeAsync<ReturnValue, InnerArguments extends any[]>(this: WebdriverIO.Browser | WebdriverIO.Element, script: string | ((...args: [...innerArgs: [WebdriverIO.Element, ...InnerArguments], callback: (result?: ReturnValue) => void]) => void), ...args: InnerArguments): Promise<ReturnValue>;
|
|
48
53
|
//# sourceMappingURL=executeAsync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/element/executeAsync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executeAsync.d.ts","sourceRoot":"","sources":["../../../src/commands/element/executeAsync.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,cAAc,SAAS,GAAG,EAAE,EACxE,IAAI,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,EAC/C,MAAM,EACF,MAAM,GACN,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,EAC3H,GAAG,IAAI,EAAE,cAAc,GACxB,OAAO,CAAC,WAAW,CAAC,CAGtB"}
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,KAAK,cAAc,MAAM,WAAW,CAAA;AAGhD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAW,YAAY,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,KAAK,cAAc,MAAM,WAAW,CAAA;AAGhD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAUpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG/C,cAAc,YAAY,CAAA;AAC1B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA;AAC9B,eAAO,MAAM,kBAAkB,iCAA2B,CAAA;AAE1D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WACP,YAAY,CAAC,iBAAiB,mBACrB,CAAC,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,iBAAiB,KAAK,cAAc,CAAC,MAAM,KACnH,OAAO,CAAC,WAAW,CAAC,OAAO,CAkD7B,CAAA;AAED,eAAO,MAAM,MAAM,kBAAkC,aAAa,KAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAiC/F,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,WACZ,YAAY,CAAC,gCAAgC,2BAC7B;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,KACxD,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAgExC,CAAA"}
|