webdriverio 8.24.6 → 8.24.12
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/getHTML.js +1 -1
- package/build/commands/element/isClickable.js +1 -1
- package/build/commands/element/isDisplayed.js +1 -1
- package/build/commands/element/isDisplayedInViewport.js +1 -1
- package/build/commands/element/isEqual.js +1 -1
- package/build/commands/element/isFocused.js +1 -1
- package/build/commands/element/scrollIntoView.js +1 -1
- package/build/protocol-stub.js +2 -2
- package/build/utils/detectBackend.js +1 -1
- package/build/utils/thirdParty/querySelectorShadowDom.js +4 -4
- package/package.json +14 -13
|
@@ -34,7 +34,7 @@ import getHTMLScript from '../../scripts/getHTML.js';
|
|
|
34
34
|
export function getHTML(includeSelectorTag = true) {
|
|
35
35
|
const browser = getBrowserObject(this);
|
|
36
36
|
return browser.execute(getHTMLScript, {
|
|
37
|
-
[ELEMENT_KEY]: this.elementId,
|
|
37
|
+
[ELEMENT_KEY]: this.elementId, // w3c compatible
|
|
38
38
|
ELEMENT: this.elementId // jsonwp compatible
|
|
39
39
|
}, includeSelectorTag);
|
|
40
40
|
}
|
|
@@ -48,7 +48,7 @@ export async function isClickable() {
|
|
|
48
48
|
}
|
|
49
49
|
const browser = getBrowserObject(this);
|
|
50
50
|
return browser.execute(isElementClickableScript, {
|
|
51
|
-
[ELEMENT_KEY]: this.elementId,
|
|
51
|
+
[ELEMENT_KEY]: this.elementId, // w3c compatible
|
|
52
52
|
ELEMENT: this.elementId // jsonwp compatible
|
|
53
53
|
});
|
|
54
54
|
}
|
|
@@ -80,7 +80,7 @@ export async function isDisplayed() {
|
|
|
80
80
|
return await this.isElementDisplayed(this.elementId);
|
|
81
81
|
}
|
|
82
82
|
return await browser.execute(isElementDisplayedScript, {
|
|
83
|
-
[ELEMENT_KEY]: this.elementId,
|
|
83
|
+
[ELEMENT_KEY]: this.elementId, // w3c compatible
|
|
84
84
|
ELEMENT: this.elementId // jsonwp compatible
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -58,7 +58,7 @@ export async function isDisplayedInViewport() {
|
|
|
58
58
|
}
|
|
59
59
|
const browser = getBrowserObject(this);
|
|
60
60
|
return browser.execute(isElementInViewportScript, {
|
|
61
|
-
[ELEMENT_KEY]: this.elementId,
|
|
61
|
+
[ELEMENT_KEY]: this.elementId, // w3c compatible
|
|
62
62
|
ELEMENT: this.elementId // jsonwp compatible
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ELEMENT_KEY } from '../../constants.js';
|
|
2
2
|
import { getBrowserObject } from '../../utils/index.js';
|
|
3
3
|
const getWebElement = (el) => ({
|
|
4
|
-
[ELEMENT_KEY]: el.elementId,
|
|
4
|
+
[ELEMENT_KEY]: el.elementId, // w3c compatible
|
|
5
5
|
ELEMENT: el.elementId // jsonwp compatible
|
|
6
6
|
});
|
|
7
7
|
/**
|
|
@@ -30,7 +30,7 @@ import isFocusedScript from '../../scripts/isFocused.js';
|
|
|
30
30
|
export async function isFocused() {
|
|
31
31
|
const browser = await getBrowserObject(this);
|
|
32
32
|
return browser.execute(isFocusedScript, {
|
|
33
|
-
[ELEMENT_KEY]: this.elementId,
|
|
33
|
+
[ELEMENT_KEY]: this.elementId, // w3c compatible
|
|
34
34
|
ELEMENT: this.elementId // jsonwp compatible
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -5,7 +5,7 @@ const log = logger('webdriverio');
|
|
|
5
5
|
function scrollIntoViewWeb(options = { block: 'start', inline: 'nearest' }) {
|
|
6
6
|
const browser = getBrowserObject(this);
|
|
7
7
|
return browser.execute((elem, options) => elem.scrollIntoView(options), {
|
|
8
|
-
[ELEMENT_KEY]: this.elementId,
|
|
8
|
+
[ELEMENT_KEY]: this.elementId, // w3c compatible
|
|
9
9
|
ELEMENT: this.elementId, // jsonwp compatible
|
|
10
10
|
}, options);
|
|
11
11
|
}
|
package/build/protocol-stub.js
CHANGED
|
@@ -10,8 +10,8 @@ export default class ProtocolStub {
|
|
|
10
10
|
options,
|
|
11
11
|
capabilities,
|
|
12
12
|
requestedCapabilities: capabilities,
|
|
13
|
-
customCommands: [],
|
|
14
|
-
overwrittenCommands: [],
|
|
13
|
+
customCommands: [], // internally used to transfer custom commands to the actual protocol instance
|
|
14
|
+
overwrittenCommands: [], // internally used to transfer overwritten commands to the actual protocol instance
|
|
15
15
|
commandList: [],
|
|
16
16
|
...capabilitiesEnvironmentDetector(capabilities, options._automationProtocol || 'webdriver')
|
|
17
17
|
};
|
|
@@ -4,7 +4,7 @@ const DEFAULT_PROTOCOL = 'http';
|
|
|
4
4
|
const DEFAULT_PATH = '/';
|
|
5
5
|
const LEGACY_PATH = '/wd/hub';
|
|
6
6
|
const REGION_MAPPING = {
|
|
7
|
-
'us': 'us-west-1.',
|
|
7
|
+
'us': 'us-west-1.', // default endpoint
|
|
8
8
|
'eu': 'eu-central-1.',
|
|
9
9
|
'eu-central-1': 'eu-central-1.',
|
|
10
10
|
'us-east-1': 'us-east-1.',
|
|
@@ -19,10 +19,10 @@ export default function querySelectorAllDeep(findMany, s, r) {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
const tokens = [], state = [0], not_escaped_pattern = /(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/, whitespace_pattern = /^\s+$/, state_patterns = [
|
|
22
|
-
/\s+|\/\*|["'>~+[(]/g,
|
|
23
|
-
/\s+|\/\*|["'[\]()]/g,
|
|
24
|
-
/\s+|\/\*|["'[\]()]/g,
|
|
25
|
-
null,
|
|
22
|
+
/\s+|\/\*|["'>~+[(]/g, // general
|
|
23
|
+
/\s+|\/\*|["'[\]()]/g, // [..] set
|
|
24
|
+
/\s+|\/\*|["'[\]()]/g, // (..) set
|
|
25
|
+
null, // string literal (placeholder)
|
|
26
26
|
/\*\//g, // comment
|
|
27
27
|
];
|
|
28
28
|
let match, unmatched, regex, next_match_idx = 0, prev_match_idx;
|
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.24.
|
|
4
|
+
"version": "8.24.12",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,26 +61,27 @@
|
|
|
61
61
|
"types": "./build/index.d.ts",
|
|
62
62
|
"typeScriptVersion": "3.8.3",
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@types/archiver": "^
|
|
64
|
+
"@types/archiver": "^6.0.2",
|
|
65
65
|
"@types/aria-query": "^5.0.0",
|
|
66
66
|
"@types/lodash.clonedeep": "^4.5.6",
|
|
67
|
-
"@types/lodash.zip": "^4.2.6"
|
|
67
|
+
"@types/lodash.zip": "^4.2.6",
|
|
68
|
+
"got": "^12.6.0"
|
|
68
69
|
},
|
|
69
70
|
"dependencies": {
|
|
70
71
|
"@types/node": "^20.1.0",
|
|
71
|
-
"@wdio/config": "8.24.
|
|
72
|
-
"@wdio/logger": "8.
|
|
73
|
-
"@wdio/protocols": "8.
|
|
74
|
-
"@wdio/repl": "8.
|
|
75
|
-
"@wdio/types": "8.24.
|
|
76
|
-
"@wdio/utils": "8.24.
|
|
72
|
+
"@wdio/config": "8.24.12",
|
|
73
|
+
"@wdio/logger": "8.24.12",
|
|
74
|
+
"@wdio/protocols": "8.24.12",
|
|
75
|
+
"@wdio/repl": "8.24.12",
|
|
76
|
+
"@wdio/types": "8.24.12",
|
|
77
|
+
"@wdio/utils": "8.24.12",
|
|
77
78
|
"archiver": "^6.0.0",
|
|
78
79
|
"aria-query": "^5.0.0",
|
|
79
80
|
"css-shorthand-properties": "^1.1.1",
|
|
80
81
|
"css-value": "^0.0.1",
|
|
81
|
-
"devtools-protocol": "^0.0.
|
|
82
|
+
"devtools-protocol": "^0.0.1233178",
|
|
82
83
|
"grapheme-splitter": "^1.0.2",
|
|
83
|
-
"import-meta-resolve": "^
|
|
84
|
+
"import-meta-resolve": "^4.0.0",
|
|
84
85
|
"is-plain-obj": "^4.1.0",
|
|
85
86
|
"lodash.clonedeep": "^4.5.0",
|
|
86
87
|
"lodash.zip": "^4.2.0",
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"resq": "^1.9.1",
|
|
91
92
|
"rgb2hex": "0.2.5",
|
|
92
93
|
"serialize-error": "^11.0.1",
|
|
93
|
-
"webdriver": "8.24.
|
|
94
|
+
"webdriver": "8.24.12"
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"devtools": "^8.14.0"
|
|
@@ -100,5 +101,5 @@
|
|
|
100
101
|
"optional": true
|
|
101
102
|
}
|
|
102
103
|
},
|
|
103
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "ebf1ba1875fe210fda7067c1c13944c50cb6a694"
|
|
104
105
|
}
|