webdriver 8.24.9 → 8.26.2

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/command.js CHANGED
@@ -13,7 +13,7 @@ export default function (method, endpointUri, commandInfo, doubleEncodeVariables
13
13
  /**
14
14
  * url variables are:
15
15
  */
16
- required: true,
16
+ required: true, // always required as they are part of the endpoint
17
17
  type: 'string' // have to be always type of string
18
18
  })), ...parameters];
19
19
  const commandUsage = `${command}(${commandParams.map((p) => p.name).join(', ')})`;
package/build/utils.js CHANGED
@@ -10,9 +10,9 @@ import { REG_EXPS } from './constants.js';
10
10
  const log = logger('webdriver');
11
11
  const deepmerge = deepmergeCustom({ mergeArrays: false });
12
12
  const BROWSER_DRIVER_ERRORS = [
13
- 'unknown command: wd/hub/session',
14
- 'HTTP method not allowed',
15
- "'POST /wd/hub/session' was not found.",
13
+ 'unknown command: wd/hub/session', // chromedriver
14
+ 'HTTP method not allowed', // geckodriver
15
+ "'POST /wd/hub/session' was not found.", // safaridriver
16
16
  'Command not found' // iedriver
17
17
  ];
18
18
  /**
@@ -56,7 +56,7 @@ export async function startWebDriverSession(params) {
56
56
  */
57
57
  : [{ alwaysMatch: params.capabilities, firstMatch: [{}] }, params.capabilities];
58
58
  const sessionRequest = await RequestFactory.getInstance('POST', '/session', {
59
- capabilities: w3cCaps,
59
+ capabilities: w3cCaps, // W3C compliant
60
60
  desiredCapabilities: jsonwpCaps // JSONWP compliant
61
61
  });
62
62
  let response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "8.24.9",
3
+ "version": "8.26.2",
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",
@@ -38,15 +38,15 @@
38
38
  "dependencies": {
39
39
  "@types/node": "^20.1.0",
40
40
  "@types/ws": "^8.5.3",
41
- "@wdio/config": "8.24.9",
42
- "@wdio/logger": "8.24.9",
43
- "@wdio/protocols": "8.24.9",
44
- "@wdio/types": "8.24.9",
45
- "@wdio/utils": "8.24.9",
41
+ "@wdio/config": "8.26.2",
42
+ "@wdio/logger": "8.24.12",
43
+ "@wdio/protocols": "8.24.12",
44
+ "@wdio/types": "8.26.2",
45
+ "@wdio/utils": "8.26.2",
46
46
  "deepmerge-ts": "^5.1.0",
47
- "got": "^ 14.0.0",
47
+ "got": "^12.6.1",
48
48
  "ky": "^0.33.0",
49
49
  "ws": "^8.8.0"
50
50
  },
51
- "gitHead": "f102df577324d7e09a2e6607888d775b8245afea"
51
+ "gitHead": "a8d00d826d49b1b01bf4921a10974e1db47085f6"
52
52
  }