webdriverio 7.16.1 → 7.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/commands/element/isClickable.d.ts +3 -1
- package/build/commands/element/isClickable.d.ts.map +1 -1
- package/build/commands/element/isClickable.js +3 -1
- package/build/commands/element/isDisplayed.d.ts +7 -0
- package/build/commands/element/isDisplayed.d.ts.map +1 -1
- package/build/commands/element/isDisplayed.js +7 -0
- package/build/commands/element/isExisting.d.ts +8 -1
- package/build/commands/element/isExisting.d.ts.map +1 -1
- package/build/commands/element/isExisting.js +8 -1
- package/build/commands/element/waitForClickable.d.ts +8 -2
- package/build/commands/element/waitForClickable.d.ts.map +1 -1
- package/build/commands/element/waitForClickable.js +8 -2
- package/build/commands/element/waitForDisplayed.d.ts +8 -2
- package/build/commands/element/waitForDisplayed.d.ts.map +1 -1
- package/build/commands/element/waitForDisplayed.js +8 -2
- package/build/commands/element/waitForEnabled.d.ts +7 -0
- package/build/commands/element/waitForEnabled.d.ts.map +1 -1
- package/build/commands/element/waitForEnabled.js +7 -0
- package/build/commands/element/waitForExist.d.ts +7 -0
- package/build/commands/element/waitForExist.d.ts.map +1 -1
- package/build/commands/element/waitForExist.js +7 -0
- package/build/commands/element/waitUntil.d.ts +7 -1
- package/build/commands/element/waitUntil.d.ts.map +1 -1
- package/build/commands/element/waitUntil.js +7 -1
- package/package.json +11 -11
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
*
|
|
13
13
|
* :::info
|
|
14
14
|
*
|
|
15
|
-
* Please note that `isClickable` works only in web browser and in mobile webviews,
|
|
15
|
+
* Please note that `isClickable` works only in web browser and in mobile webviews,
|
|
16
|
+
* it doesn't work in mobile app native context. Also, as oppose to other element
|
|
17
|
+
* commands WebdriverIO will not wait for the element to exist to execute this command.
|
|
16
18
|
*
|
|
17
19
|
* :::
|
|
18
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isClickable.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"isClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isClickable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAA8B,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAUnE"}
|
|
@@ -20,7 +20,9 @@ const isElementClickable_1 = __importDefault(require("../../scripts/isElementCli
|
|
|
20
20
|
*
|
|
21
21
|
* :::info
|
|
22
22
|
*
|
|
23
|
-
* Please note that `isClickable` works only in web browser and in mobile webviews,
|
|
23
|
+
* Please note that `isClickable` works only in web browser and in mobile webviews,
|
|
24
|
+
* it doesn't work in mobile app native context. Also, as oppose to other element
|
|
25
|
+
* commands WebdriverIO will not wait for the element to exist to execute this command.
|
|
24
26
|
*
|
|
25
27
|
* :::
|
|
26
28
|
*
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
*
|
|
3
3
|
* Return true if the selected DOM-element is displayed.
|
|
4
4
|
*
|
|
5
|
+
* :::info
|
|
6
|
+
*
|
|
7
|
+
* As oppose to other element commands WebdriverIO will not wait for the element
|
|
8
|
+
* to exist to execute this command.
|
|
9
|
+
*
|
|
10
|
+
* :::
|
|
11
|
+
*
|
|
5
12
|
* <example>
|
|
6
13
|
:index.html
|
|
7
14
|
<div id="notDisplayed" style="display: none"></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAQA
|
|
1
|
+
{"version":3,"file":"isDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isDisplayed.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAA8B,WAAW,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAgCnE"}
|
|
@@ -11,6 +11,13 @@ const noW3CEndpoint = ['microsoftedge', 'msedge', 'safari', 'chrome', 'safari te
|
|
|
11
11
|
*
|
|
12
12
|
* Return true if the selected DOM-element is displayed.
|
|
13
13
|
*
|
|
14
|
+
* :::info
|
|
15
|
+
*
|
|
16
|
+
* As oppose to other element commands WebdriverIO will not wait for the element
|
|
17
|
+
* to exist to execute this command.
|
|
18
|
+
*
|
|
19
|
+
* :::
|
|
20
|
+
*
|
|
14
21
|
* <example>
|
|
15
22
|
:index.html
|
|
16
23
|
<div id="notDisplayed" style="display: none"></div>
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
|
-
* Returns true if element exists in the DOM
|
|
3
|
+
* Returns true if element exists in the DOM.
|
|
4
|
+
*
|
|
5
|
+
* :::info
|
|
6
|
+
*
|
|
7
|
+
* As oppose to other element commands WebdriverIO will not wait for the element
|
|
8
|
+
* to exist to execute this command.
|
|
9
|
+
*
|
|
10
|
+
* :::
|
|
4
11
|
*
|
|
5
12
|
* <example>
|
|
6
13
|
:index.html
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isExisting.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isExisting.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"isExisting.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isExisting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAA8B,UAAU,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAkBlE"}
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* Returns true if element exists in the DOM
|
|
5
|
+
* Returns true if element exists in the DOM.
|
|
6
|
+
*
|
|
7
|
+
* :::info
|
|
8
|
+
*
|
|
9
|
+
* As oppose to other element commands WebdriverIO will not wait for the element
|
|
10
|
+
* to exist to execute this command.
|
|
11
|
+
*
|
|
12
|
+
* :::
|
|
6
13
|
*
|
|
7
14
|
* <example>
|
|
8
15
|
:index.html
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import type { WaitForOptions } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
* Wait for an element for the provided amount of
|
|
4
|
-
*
|
|
3
|
+
* Wait for an element for the provided amount of milliseconds to be clickable or not clickable.
|
|
4
|
+
*
|
|
5
|
+
* :::info
|
|
6
|
+
*
|
|
7
|
+
* As oppose to other element commands WebdriverIO will not wait for the element to exist to execute
|
|
8
|
+
* this command.
|
|
9
|
+
*
|
|
10
|
+
* :::
|
|
5
11
|
*
|
|
6
12
|
* <example>
|
|
7
13
|
:waitForClickable.js
|
|
@@ -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,aAAa,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"waitForClickable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForClickable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAA8B,gBAAgB,CAC1C,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,wBAMzB"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
|
-
* Wait for an element for the provided amount of
|
|
5
|
-
*
|
|
4
|
+
* Wait for an element for the provided amount of milliseconds to be clickable or not clickable.
|
|
5
|
+
*
|
|
6
|
+
* :::info
|
|
7
|
+
*
|
|
8
|
+
* As oppose to other element commands WebdriverIO will not wait for the element to exist to execute
|
|
9
|
+
* this command.
|
|
10
|
+
*
|
|
11
|
+
* :::
|
|
6
12
|
*
|
|
7
13
|
* <example>
|
|
8
14
|
:waitForClickable.js
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { WaitForOptions } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
|
-
* Wait for an element for the provided amount of
|
|
5
|
-
*
|
|
4
|
+
* Wait for an element for the provided amount of milliseconds to be displayed or not displayed.
|
|
5
|
+
*
|
|
6
|
+
* :::info
|
|
7
|
+
*
|
|
8
|
+
* As oppose to other element commands WebdriverIO will not wait for the element to exist to execute
|
|
9
|
+
* this command.
|
|
10
|
+
*
|
|
11
|
+
* :::
|
|
6
12
|
*
|
|
7
13
|
* <example>
|
|
8
14
|
:index.html
|
|
@@ -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,aAAa,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"waitForDisplayed.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForDisplayed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAA8B,gBAAgB,CAC1C,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAsG,EACzG,GAAE,cAAmB,wBAMzB"}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
|
-
* Wait for an element for the provided amount of
|
|
6
|
-
*
|
|
5
|
+
* Wait for an element for the provided amount of milliseconds to be displayed or not displayed.
|
|
6
|
+
*
|
|
7
|
+
* :::info
|
|
8
|
+
*
|
|
9
|
+
* As oppose to other element commands WebdriverIO will not wait for the element to exist to execute
|
|
10
|
+
* this command.
|
|
11
|
+
*
|
|
12
|
+
* :::
|
|
7
13
|
*
|
|
8
14
|
* <example>
|
|
9
15
|
:index.html
|
|
@@ -5,6 +5,13 @@ import type { WaitForOptions } from '../../types';
|
|
|
5
5
|
* milliseconds to be (dis/en)abled. If multiple elements get queried by given
|
|
6
6
|
* selector, it returns true if at least one element is (dis/en)abled.
|
|
7
7
|
*
|
|
8
|
+
* :::info
|
|
9
|
+
*
|
|
10
|
+
* As oppose to other element commands WebdriverIO will not wait for the element
|
|
11
|
+
* to exist to execute this command.
|
|
12
|
+
*
|
|
13
|
+
* :::
|
|
14
|
+
*
|
|
8
15
|
* <example>
|
|
9
16
|
:index.html
|
|
10
17
|
<input type="text" id="username" value="foobar" disabled="disabled"></input>
|
|
@@ -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,aAAa,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"waitForEnabled.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForEnabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAA8B,cAAc,CACxC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAoG,EACvG,GAAE,cAAmB,wBAazB"}
|
|
@@ -6,6 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
* milliseconds to be (dis/en)abled. If multiple elements get queried by given
|
|
7
7
|
* selector, it returns true if at least one element is (dis/en)abled.
|
|
8
8
|
*
|
|
9
|
+
* :::info
|
|
10
|
+
*
|
|
11
|
+
* As oppose to other element commands WebdriverIO will not wait for the element
|
|
12
|
+
* to exist to execute this command.
|
|
13
|
+
*
|
|
14
|
+
* :::
|
|
15
|
+
*
|
|
9
16
|
* <example>
|
|
10
17
|
:index.html
|
|
11
18
|
<input type="text" id="username" value="foobar" disabled="disabled"></input>
|
|
@@ -7,6 +7,13 @@ import type { WaitForOptions } from '../../types';
|
|
|
7
7
|
* error. If the reverse flag is true, the command will instead return true
|
|
8
8
|
* if the selector does not match any elements.
|
|
9
9
|
*
|
|
10
|
+
* :::info
|
|
11
|
+
*
|
|
12
|
+
* As oppose to other element commands WebdriverIO will not wait for the
|
|
13
|
+
* element to exist to execute this command.
|
|
14
|
+
*
|
|
15
|
+
* :::
|
|
16
|
+
*
|
|
10
17
|
* <example>
|
|
11
18
|
:waitForExistSyncExample.js
|
|
12
19
|
it('should display a notification message after successful form submit', async () => {
|
|
@@ -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,aAAa,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"waitForExist.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitForExist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAChC,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,EACI,OAAqC,EACrC,QAAuC,EACvC,OAAe,EACf,UAAqG,EACxG,GAAE,cAAmB,wBAMzB"}
|
|
@@ -8,6 +8,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
* error. If the reverse flag is true, the command will instead return true
|
|
9
9
|
* if the selector does not match any elements.
|
|
10
10
|
*
|
|
11
|
+
* :::info
|
|
12
|
+
*
|
|
13
|
+
* As oppose to other element commands WebdriverIO will not wait for the
|
|
14
|
+
* element to exist to execute this command.
|
|
15
|
+
*
|
|
16
|
+
* :::
|
|
17
|
+
*
|
|
11
18
|
* <example>
|
|
12
19
|
:waitForExistSyncExample.js
|
|
13
20
|
it('should display a notification message after successful form submit', async () => {
|
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
* and waits until that condition is fulfilled with a truthy value. If you use the WDIO testrunner the
|
|
5
5
|
* commands within the condition are getting executed synchronously like in your test.
|
|
6
6
|
*
|
|
7
|
+
* :::info
|
|
8
|
+
*
|
|
9
|
+
* As oppose to other element commands WebdriverIO will not wait for the element to exist to execute
|
|
10
|
+
* this command.
|
|
11
|
+
*
|
|
12
|
+
* :::
|
|
13
|
+
*
|
|
7
14
|
* A common example is to wait until a certain element contains a certain text (see example).
|
|
8
15
|
*
|
|
9
16
|
* <example>
|
|
@@ -27,7 +34,6 @@
|
|
|
27
34
|
});
|
|
28
35
|
* </example>
|
|
29
36
|
*
|
|
30
|
-
*
|
|
31
37
|
* @alias element.waitUntil
|
|
32
38
|
* @param {Function#Boolean} condition condition to wait on
|
|
33
39
|
* @param {WaitUntilOptions=} options command options
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitUntil.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"waitUntil.d.ts","sourceRoot":"","sources":["../../../src/commands/element/waitUntil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,SAAS,MAAM,sBAAsB,CAAA;AAC5C,eAAe,SAAS,CAAA"}
|
|
@@ -9,6 +9,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
* and waits until that condition is fulfilled with a truthy value. If you use the WDIO testrunner the
|
|
10
10
|
* commands within the condition are getting executed synchronously like in your test.
|
|
11
11
|
*
|
|
12
|
+
* :::info
|
|
13
|
+
*
|
|
14
|
+
* As oppose to other element commands WebdriverIO will not wait for the element to exist to execute
|
|
15
|
+
* this command.
|
|
16
|
+
*
|
|
17
|
+
* :::
|
|
18
|
+
*
|
|
12
19
|
* A common example is to wait until a certain element contains a certain text (see example).
|
|
13
20
|
*
|
|
14
21
|
* <example>
|
|
@@ -32,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
32
39
|
});
|
|
33
40
|
* </example>
|
|
34
41
|
*
|
|
35
|
-
*
|
|
36
42
|
* @alias element.waitUntil
|
|
37
43
|
* @param {Function#Boolean} condition condition to wait on
|
|
38
44
|
* @param {WaitUntilOptions=} options command options
|
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": "7.16.
|
|
4
|
+
"version": "7.16.5",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -56,21 +56,21 @@
|
|
|
56
56
|
"@types/lodash.zip": "^4.2.6"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@types/aria-query": "^
|
|
59
|
+
"@types/aria-query": "^5.0.0",
|
|
60
60
|
"@types/node": "^16.11.1",
|
|
61
|
-
"@wdio/config": "7.16.
|
|
61
|
+
"@wdio/config": "7.16.3",
|
|
62
62
|
"@wdio/logger": "7.16.0",
|
|
63
63
|
"@wdio/protocols": "7.16.1",
|
|
64
|
-
"@wdio/repl": "7.16.
|
|
65
|
-
"@wdio/types": "7.16.
|
|
66
|
-
"@wdio/utils": "7.16.
|
|
64
|
+
"@wdio/repl": "7.16.3",
|
|
65
|
+
"@wdio/types": "7.16.3",
|
|
66
|
+
"@wdio/utils": "7.16.3",
|
|
67
67
|
"archiver": "^5.0.0",
|
|
68
68
|
"aria-query": "^5.0.0",
|
|
69
69
|
"atob": "^2.1.2",
|
|
70
70
|
"css-shorthand-properties": "^1.1.1",
|
|
71
71
|
"css-value": "^0.0.1",
|
|
72
|
-
"devtools": "7.16.
|
|
73
|
-
"devtools-protocol": "^0.0.
|
|
72
|
+
"devtools": "7.16.5",
|
|
73
|
+
"devtools-protocol": "^0.0.938931",
|
|
74
74
|
"fs-extra": "^10.0.0",
|
|
75
75
|
"get-port": "^5.1.1",
|
|
76
76
|
"grapheme-splitter": "^1.0.2",
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"lodash.isplainobject": "^4.0.6",
|
|
80
80
|
"lodash.zip": "^4.2.0",
|
|
81
81
|
"minimatch": "^3.0.4",
|
|
82
|
-
"puppeteer-core": "^
|
|
82
|
+
"puppeteer-core": "^11.0.0",
|
|
83
83
|
"query-selector-shadow-dom": "^1.0.0",
|
|
84
84
|
"resq": "^1.9.1",
|
|
85
85
|
"rgb2hex": "0.2.5",
|
|
86
86
|
"serialize-error": "^8.0.0",
|
|
87
|
-
"webdriver": "7.16.
|
|
87
|
+
"webdriver": "7.16.3"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "18d21befbae2b65b11765b73f9926e724cacad56"
|
|
90
90
|
}
|