webdriver 8.12.3 → 8.13.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.
- package/build/cjs/index.js +10 -0
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function command(method, encodeUri, commandInfo, doubleEncodeVariables = false) {
|
|
2
|
+
return async function protocolCommand(...args) {
|
|
3
|
+
const commandESM = await import('../command.js');
|
|
4
|
+
return commandESM.default(method, encodeUri, commandInfo, doubleEncodeVariables).apply(this, args);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
1
7
|
class WebDriver {
|
|
2
8
|
static async newSession(options, modifier, userPrototype = {}, customCommandWrapper) {
|
|
3
9
|
const WebDriver = (await import('../index.js')).default;
|
|
@@ -24,6 +30,10 @@ class WebDriver {
|
|
|
24
30
|
static get WebDriver() {
|
|
25
31
|
return WebDriver;
|
|
26
32
|
}
|
|
33
|
+
static get command() {
|
|
34
|
+
return command;
|
|
35
|
+
}
|
|
27
36
|
}
|
|
28
37
|
module.exports = WebDriver;
|
|
38
|
+
exports.command = command;
|
|
29
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.1",
|
|
4
4
|
"description": "A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/webdriver",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"ky": "^0.33.0",
|
|
49
49
|
"ws": "^8.8.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "835b794cfae7fe0ffdca9a2ef2b90b4cf8ec02ad"
|
|
52
52
|
}
|