webdriver 8.11.0 → 8.11.3

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/README.md CHANGED
@@ -65,10 +65,7 @@ const browser = await WebDriver.newSession({
65
65
  }
66
66
  })
67
67
 
68
- await browser.send({
69
- method: 'session.subscribe',
70
- params: { events: ['log.entryAdded'] }
71
- })
68
+ await browser.sessionSubscribe({ events: ['log.entryAdded'] })
72
69
 
73
70
  /**
74
71
  * returns: {"method":"log.entryAdded","params":{"type":"console","method":"log","realm":null,"args":[{"type":"string","value":"Hello Bidi"}],"level":"info","text":"Hello Bidi","timestamp":1657282076037}}
package/build/utils.js CHANGED
@@ -20,7 +20,7 @@ const BROWSER_DRIVER_ERRORS = [
20
20
  export async function startWebDriverSession(params) {
21
21
  /**
22
22
  * validate capabilities to check if there are no obvious mix between
23
- * JSONWireProtocol and WebDriver protoocol, e.g.
23
+ * JSONWireProtocol and WebDriver protocol, e.g.
24
24
  */
25
25
  if (params.capabilities) {
26
26
  const extensionCaps = Object.keys(params.capabilities).filter((cap) => cap.includes(':'));
@@ -35,7 +35,7 @@ export async function startWebDriverSession(params) {
35
35
  throw new Error(`Invalid or unsupported WebDriver capabilities found ("${invalidWebDriverCaps.join('", "')}"). ` +
36
36
  'Ensure to only use valid W3C WebDriver capabilities (see https://w3c.github.io/webdriver/#capabilities).' +
37
37
  'If you run your tests on a remote vendor, like Sauce Labs or BrowserStack, make sure that you put them ' +
38
- 'into vendor specific capabilities, e.g. "sauce:options" or "bstack:options". Please reach out to ' +
38
+ 'into vendor specific capabilities, e.g. "sauce:options" or "bstack:options". Please reach out ' +
39
39
  'to your vendor support team if you have further questions.');
40
40
  }
41
41
  }
@@ -69,7 +69,7 @@ export async function startWebDriverSession(params) {
69
69
  }
70
70
  const sessionId = response.value.sessionId || response.sessionId;
71
71
  /**
72
- * save actual receveived session details
72
+ * save actual received session details
73
73
  */
74
74
  params.capabilities = response.value.capabilities || response.value;
75
75
  return { sessionId, capabilities: params.capabilities };
@@ -95,7 +95,7 @@ export function isSuccessfulResponse(statusCode, body) {
95
95
  (body.value.message.toLowerCase().startsWith('no such element') ||
96
96
  // Appium
97
97
  body.value.message === 'An element could not be located on the page using the given search parameters.' ||
98
- // Internet Explorter
98
+ // Internet Explorer
99
99
  body.value.message.toLowerCase().startsWith('unable to find element'))) {
100
100
  return true;
101
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver",
3
- "version": "8.11.0",
3
+ "version": "8.11.3",
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,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@types/node": "^20.1.0",
40
40
  "@types/ws": "^8.5.3",
41
- "@wdio/config": "8.11.0",
41
+ "@wdio/config": "8.11.3",
42
42
  "@wdio/logger": "8.11.0",
43
43
  "@wdio/protocols": "8.11.0",
44
44
  "@wdio/types": "8.10.4",
@@ -48,5 +48,5 @@
48
48
  "ky": "^0.33.0",
49
49
  "ws": "^8.8.0"
50
50
  },
51
- "gitHead": "6fa7ae486537cbd3f6dd9e3bcc1812eb0acc6262"
51
+ "gitHead": "bcae91b4ce5be6dad9f2919ec74d4e427cb838b3"
52
52
  }