webdriverio 8.26.0 → 8.26.1-alpha.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/keys.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,IAAI,CACtB,IAAI,EAAE,WAAW,CAAC,OAAO,EACzB,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,iBAmC3B"}
|
|
@@ -20,7 +20,7 @@ import { checkUnicode } from '../../utils/index.js';
|
|
|
20
20
|
* @example https://github.com/webdriverio/example-recipes/blob/355434bdef13d29608d6d5fbfbeaa034c8a2aa74/keys/keys.js#L1-L17
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function keys(value) {
|
|
23
|
+
export async function keys(value) {
|
|
24
24
|
let keySequence = [];
|
|
25
25
|
/**
|
|
26
26
|
* replace key with corresponding unicode character
|
|
@@ -50,5 +50,6 @@ export function keys(value) {
|
|
|
50
50
|
keySequence.forEach((value) => keyAction.down(value));
|
|
51
51
|
keyAction.pause(10);
|
|
52
52
|
keySequence.forEach((value) => keyAction.up(value));
|
|
53
|
-
|
|
53
|
+
// pass true to skip release of keys as they are already released
|
|
54
|
+
return keyAction.perform(true);
|
|
54
55
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
|
-
* Will return true when stable (in animation) or when unstable (not in animation)
|
|
3
|
+
* Will return true when stable (in animation) or when unstable (not in animation).
|
|
4
4
|
*
|
|
5
|
-
* __Note:__ it's best to disable animations instead of using this command
|
|
5
|
+
* __Note:__ it's best to disable animations instead of using this command.
|
|
6
6
|
*
|
|
7
7
|
* <example>
|
|
8
8
|
:index.html
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
#has-animation {
|
|
17
17
|
animation: 3s 0s alternate slidein;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
\@keyframes slidein {
|
|
20
20
|
from {
|
|
21
21
|
margin-left: 100%;
|
|
22
22
|
width: 300%;
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
</style>
|
|
31
31
|
</head>
|
|
32
|
+
|
|
32
33
|
<body>
|
|
33
34
|
<div #has-animation></div>
|
|
34
35
|
<div #has-no-animation></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isStable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isStable.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"isStable.d.ts","sourceRoot":"","sources":["../../../src/commands/element/isStable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAsB,QAAQ,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,oBAMxD"}
|
|
@@ -3,9 +3,9 @@ import { getBrowserObject } from '../../utils/index.js';
|
|
|
3
3
|
import isElementStable from '../../scripts/isElementStable.js';
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
|
-
* Will return true when stable (in animation) or when unstable (not in animation)
|
|
6
|
+
* Will return true when stable (in animation) or when unstable (not in animation).
|
|
7
7
|
*
|
|
8
|
-
* __Note:__ it's best to disable animations instead of using this command
|
|
8
|
+
* __Note:__ it's best to disable animations instead of using this command.
|
|
9
9
|
*
|
|
10
10
|
* <example>
|
|
11
11
|
:index.html
|
|
@@ -19,7 +19,7 @@ import isElementStable from '../../scripts/isElementStable.js';
|
|
|
19
19
|
#has-animation {
|
|
20
20
|
animation: 3s 0s alternate slidein;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
\@keyframes slidein {
|
|
23
23
|
from {
|
|
24
24
|
margin-left: 100%;
|
|
25
25
|
width: 300%;
|
|
@@ -32,6 +32,7 @@ import isElementStable from '../../scripts/isElementStable.js';
|
|
|
32
32
|
}
|
|
33
33
|
</style>
|
|
34
34
|
</head>
|
|
35
|
+
|
|
35
36
|
<body>
|
|
36
37
|
<div #has-animation></div>
|
|
37
38
|
<div #has-no-animation></div>
|
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.26.
|
|
4
|
+
"version": "8.26.1-alpha.1+54e2b9fa8",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"optional": true
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "54e2b9fa80329f9a7f122cc781186081ea4843ef"
|
|
105
105
|
}
|