@applitools/eyes-webdriverio 5.50.8 → 5.50.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,81 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.50.9](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-webdriverio@5.50.8...js/eyes-webdriverio@5.50.9) (2024-02-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fixed issue with cdp commands on chromium browsers ([#2180](https://github.com/applitools/eyes.sdk.javascript1/issues/2180)) ([550fc77](https://github.com/applitools/eyes.sdk.javascript1/commit/550fc772d3988aae29e6f4a1a11d2a408072dc38))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/dom-snapshot bumped to 4.7.17
14
+ #### Bug Fixes
15
+
16
+ * throw error for encoding none unicode char ([#2171](https://github.com/applitools/eyes.sdk.javascript1/issues/2171)) ([4edb9cf](https://github.com/applitools/eyes.sdk.javascript1/commit/4edb9cfb27d8db2ff4cb09c8ebf1b95ab020633d))
17
+ * @applitools/spec-driver-webdriver bumped to 1.0.57
18
+ #### Bug Fixes
19
+
20
+ * fixed issue with cdp commands on chromium browsers ([#2180](https://github.com/applitools/eyes.sdk.javascript1/issues/2180)) ([550fc77](https://github.com/applitools/eyes.sdk.javascript1/commit/550fc772d3988aae29e6f4a1a11d2a408072dc38))
21
+ * @applitools/spec-driver-puppeteer bumped to 1.4.0
22
+ #### Features
23
+
24
+ * added support for puppeteer >= 22 ([#2185](https://github.com/applitools/eyes.sdk.javascript1/issues/2185)) ([59d23a9](https://github.com/applitools/eyes.sdk.javascript1/commit/59d23a9689d77c7db06df53b67fa293a3b3f166e))
25
+ * @applitools/core bumped to 4.8.0
26
+ #### Features
27
+
28
+ * add support for regions and calculated regions ([#2161](https://github.com/applitools/eyes.sdk.javascript1/issues/2161)) ([fea4b1f](https://github.com/applitools/eyes.sdk.javascript1/commit/fea4b1fca3d8f59eada2b5186cd32d47352ccf1a))
29
+
30
+
31
+ #### Bug Fixes
32
+
33
+ * missing viewport when using system screenshot and multi viewport ([#2173](https://github.com/applitools/eyes.sdk.javascript1/issues/2173)) ([411283c](https://github.com/applitools/eyes.sdk.javascript1/commit/411283c7bebc09f178d73b6b47e81e5ce4244d5e))
34
+ * nml coded region integration with universal ([6fb0934](https://github.com/applitools/eyes.sdk.javascript1/commit/6fb09348238dfe4698856f88e762a9abf80c686f))
35
+ * throw error for encoding none unicode char ([#2171](https://github.com/applitools/eyes.sdk.javascript1/issues/2171)) ([4edb9cf](https://github.com/applitools/eyes.sdk.javascript1/commit/4edb9cfb27d8db2ff4cb09c8ebf1b95ab020633d))
36
+
37
+
38
+
39
+ * @applitools/screenshoter bumped to 3.8.23
40
+
41
+ * @applitools/nml-client bumped to 1.7.0
42
+ #### Features
43
+
44
+ * add support for regions and calculated regions ([#2161](https://github.com/applitools/eyes.sdk.javascript1/issues/2161)) ([fea4b1f](https://github.com/applitools/eyes.sdk.javascript1/commit/fea4b1fca3d8f59eada2b5186cd32d47352ccf1a))
45
+
46
+
47
+ #### Bug Fixes
48
+
49
+ * missing viewport when using system screenshot and multi viewport ([#2173](https://github.com/applitools/eyes.sdk.javascript1/issues/2173)) ([411283c](https://github.com/applitools/eyes.sdk.javascript1/commit/411283c7bebc09f178d73b6b47e81e5ce4244d5e))
50
+
51
+
52
+
53
+ * @applitools/ec-client bumped to 1.7.25
54
+
55
+ * @applitools/eyes bumped to 1.14.0
56
+ #### Features
57
+
58
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
59
+ * added `enableEyesLogs` configuration to the eyes service ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
60
+ * added `useExecutionCloud` configuration to the eyes service ([#2033](https://github.com/applitools/eyes.sdk.javascript1/issues/2033)) ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
61
+ * generate more enums ([#2179](https://github.com/applitools/eyes.sdk.javascript1/issues/2179)) ([5f4f916](https://github.com/applitools/eyes.sdk.javascript1/commit/5f4f91621b791a02464191123f69b12f590b9efe))
62
+
63
+
64
+ #### Bug Fixes
65
+
66
+ * error to unknown type in exception ([#2035](https://github.com/applitools/eyes.sdk.javascript1/issues/2035)) ([16d78c3](https://github.com/applitools/eyes.sdk.javascript1/commit/16d78c3cce90a5cb50cc2aa4e9ab6a58b7b93f89))
67
+ * fixed `serverUrl` configuration propagation ([247b7d8](https://github.com/applitools/eyes.sdk.javascript1/commit/247b7d88853dd1a9068d2d963582ad795752ace4))
68
+ * fixed default value in `useSystemScreenshot` method of check settings ([42a773c](https://github.com/applitools/eyes.sdk.javascript1/commit/42a773cc57e8e5de528a049b376159615892003b))
69
+ * fixed issue when w3c properties were added to legacy capabilities object in `Eyes.setMobileCapabilities` method ([94d785f](https://github.com/applitools/eyes.sdk.javascript1/commit/94d785f0428df101c207d6f09a55c46f2bdbf19e))
70
+
71
+
72
+ #### Code Refactoring
73
+
74
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
75
+
76
+
77
+
78
+
3
79
  ## [5.50.8](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-webdriverio@5.50.7...js/eyes-webdriverio@5.50.8) (2024-02-06)
4
80
 
5
81
 
@@ -63,18 +63,22 @@ exports.isSecondarySelector = isSecondarySelector;
63
63
  function toDriver(driver) {
64
64
  if (spec.isSecondaryDriver(driver))
65
65
  return spec.toDriver(driver);
66
- if (driver.isDevTools) {
66
+ if (!driver.isDevTools) {
67
+ // NOTE: this function also could be used to populate missed webdriver commands
68
+ return spec.toDriver(driver);
69
+ }
70
+ else {
71
+ // NOTE: populating missing commands of devtools instance
67
72
  driver.addCommand('sendCommandAndGetResult', async (name, options) => {
68
73
  const puppeteer = await driver.getPuppeteer();
69
74
  const [page] = await puppeteer.pages();
70
75
  const session = await page.target().createCDPSession();
71
76
  return session.send(name, options);
72
77
  });
78
+ return Object.create(driver, {
79
+ original: { enumerable: false, get: () => driver },
80
+ });
73
81
  }
74
- const transformedDriver = Object.create(driver, {
75
- original: { enumerable: false, get: () => driver },
76
- });
77
- return transformedDriver;
78
82
  }
79
83
  exports.toDriver = toDriver;
80
84
  function toElement(element) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-webdriverio",
3
- "version": "5.50.8",
3
+ "version": "5.50.9",
4
4
  "description": "Applitools Eyes SDK for WebdriverIO",
5
5
  "keywords": [
6
6
  "eyes-webdriverio",
@@ -72,13 +72,13 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@applitools/driver": "1.16.2",
75
- "@applitools/eyes": "1.13.6",
76
- "@applitools/spec-driver-webdriver": "1.0.56"
75
+ "@applitools/eyes": "1.14.0",
76
+ "@applitools/spec-driver-webdriver": "1.0.57"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@applitools/api-extractor": "^1.2.22",
80
80
  "@applitools/bongo": "^5.10.0",
81
- "@applitools/generic": "^3.8.0",
81
+ "@applitools/generic": "^3.9.1",
82
82
  "@applitools/test-utils": "^1.5.17",
83
83
  "@types/node": "^16.18.14",
84
84
  "@wdio/cli": "^8.14.4",