@applitools/ec-client 1.8.8 → 1.9.0

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,37 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.0](https://github.com/Applitools-Dev/sdk/compare/js/ec-client@1.8.9...js/ec-client@1.9.0) (2024-06-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * support findElements self healing ([#2387](https://github.com/Applitools-Dev/sdk/issues/2387)) ([57521e2](https://github.com/Applitools-Dev/sdk/commit/57521e273cf2a836a822baafbb88f342358e3ac2))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/tunnel-client bumped to 1.5.5
14
+ #### Bug Fixes
15
+
16
+ * update tunnel to 3.0.5 ([#2394](https://github.com/Applitools-Dev/sdk/issues/2394)) ([cdd7f90](https://github.com/Applitools-Dev/sdk/commit/cdd7f90416bf0e29b216a29789e7dbbc9c5d1e0d))
17
+
18
+ ## [1.8.9](https://github.com/Applitools-Dev/sdk/compare/js/ec-client@1.8.8...js/ec-client@1.8.9) (2024-06-11)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * shadow dom self healing ([#2375](https://github.com/Applitools-Dev/sdk/issues/2375)) ([4d3a88c](https://github.com/Applitools-Dev/sdk/commit/4d3a88cbc3e05c3dd317afbb5de8d677368c346d))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * @applitools/spec-driver-webdriver bumped to 1.1.9
29
+
30
+ * @applitools/driver bumped to 1.17.4
31
+ #### Bug Fixes
32
+
33
+ * cache nml client per driver session ([#2368](https://github.com/Applitools-Dev/sdk/issues/2368)) ([5840389](https://github.com/Applitools-Dev/sdk/commit/5840389f74111c0e0e68026389c755c59a027b74))
34
+
3
35
  ## [1.8.8](https://github.com/Applitools-Dev/sdk/compare/js/ec-client@1.8.7...js/ec-client@1.8.8) (2024-06-01)
4
36
 
5
37
 
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeFindElement = void 0;
4
4
  const buffer_1 = require("buffer");
5
+ // used in findElement, findElements and similar commands
5
6
  function makeFindElement({ req }) {
6
7
  return async function findElement({ session, request, response, logger, }) {
7
8
  var _a, _b, _c;
package/dist/server.js CHANGED
@@ -79,6 +79,14 @@ async function makeServer({ settings, logger: mainLogger, }) {
79
79
  const session = sessions.get(match.groups.sessionId);
80
80
  await commands.findElement({ session, request, response, logger: requestLogger });
81
81
  });
82
+ router.post('/session/:sessionId/elements', async ({ match }) => {
83
+ const session = sessions.get(match.groups.sessionId);
84
+ await commands.findElement({ session, request, response, logger: requestLogger });
85
+ });
86
+ router.post('/session/:sessionId/shadow/:shadowId/element', async ({ match }) => {
87
+ const session = sessions.get(match.groups.sessionId);
88
+ await commands.findElement({ session, request, response, logger: requestLogger });
89
+ });
82
90
  router.delete('/session/:sessionId', async ({ match }) => {
83
91
  const session = sessions.get(match.groups.sessionId);
84
92
  await commands.endSession({ session, request, response, logger: requestLogger });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/ec-client",
3
- "version": "1.8.8",
3
+ "version": "1.9.0",
4
4
  "homepage": "https://applitools.com",
5
5
  "bugs": {
6
6
  "url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -53,12 +53,12 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@applitools/core-base": "1.15.2",
56
- "@applitools/driver": "1.17.3",
56
+ "@applitools/driver": "1.17.4",
57
57
  "@applitools/logger": "2.0.17",
58
58
  "@applitools/req": "1.7.1",
59
59
  "@applitools/socket": "1.1.17",
60
- "@applitools/spec-driver-webdriver": "1.1.8",
61
- "@applitools/tunnel-client": "1.5.4",
60
+ "@applitools/spec-driver-webdriver": "1.1.9",
61
+ "@applitools/tunnel-client": "1.5.5",
62
62
  "@applitools/utils": "1.7.3",
63
63
  "abort-controller": "3.0.0",
64
64
  "webdriver": "7.31.1",