@applitools/driver 1.17.3 → 1.17.5

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,38 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.17.5](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.4...js/driver@1.17.5) (2024-06-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * tunnel client ([670b184](https://github.com/Applitools-Dev/sdk/commit/670b1843ce43347d97e19fa02f8bc630332ff414))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/utils bumped to 1.7.4
14
+ #### Bug Fixes
15
+
16
+ * tunnel client ([670b184](https://github.com/Applitools-Dev/sdk/commit/670b1843ce43347d97e19fa02f8bc630332ff414))
17
+ * @applitools/logger bumped to 2.0.18
18
+ #### Bug Fixes
19
+
20
+ * tunnel client ([670b184](https://github.com/Applitools-Dev/sdk/commit/670b1843ce43347d97e19fa02f8bc630332ff414))
21
+
22
+
23
+
24
+ * @applitools/snippets bumped to 2.4.27
25
+ #### Bug Fixes
26
+
27
+ * tunnel client ([670b184](https://github.com/Applitools-Dev/sdk/commit/670b1843ce43347d97e19fa02f8bc630332ff414))
28
+
29
+ ## [1.17.4](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.3...js/driver@1.17.4) (2024-06-11)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * cache nml client per driver session ([#2368](https://github.com/Applitools-Dev/sdk/issues/2368)) ([5840389](https://github.com/Applitools-Dev/sdk/commit/5840389f74111c0e0e68026389c755c59a027b74))
35
+
3
36
  ## [1.17.3](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.2...js/driver@1.17.3) (2024-05-28)
4
37
 
5
38
 
@@ -23,7 +23,7 @@ const DEFAULT_PROPS = {
23
23
  };
24
24
  class MockDriver {
25
25
  constructor(options = {}) {
26
- const { viewport = { width: 1000, height: 1000 }, device, platform, browser, ua, driverServerUrl, capabilities, } = options;
26
+ const { viewport = { width: 1000, height: 1000 }, device, platform, browser, ua, driverServerUrl, capabilities, sessionId, } = options;
27
27
  this._device = device;
28
28
  this._platform = platform;
29
29
  this._browser = browser;
@@ -35,6 +35,7 @@ class MockDriver {
35
35
  };
36
36
  this._driverServerUrl = driverServerUrl;
37
37
  this._capabilities = capabilities;
38
+ this._sessionId = sessionId;
38
39
  this._methods = new Map();
39
40
  this._scripts = new Map();
40
41
  this._elements = new Map();
@@ -270,6 +271,9 @@ class MockDriver {
270
271
  get driverServerUrl() {
271
272
  return this._driverServerUrl;
272
273
  }
274
+ get sessionId() {
275
+ return this._sessionId;
276
+ }
273
277
  get capabilities() {
274
278
  return this._capabilities;
275
279
  }
@@ -106,7 +106,7 @@ async function takeScreenshot(driver) {
106
106
  }
107
107
  exports.takeScreenshot = takeScreenshot;
108
108
  async function getDriverInfo(driver) {
109
- return { environment: driver.environment, driverServerUrl: driver.driverServerUrl };
109
+ return { environment: driver.environment, driverServerUrl: driver.driverServerUrl, sessionId: driver.sessionId };
110
110
  }
111
111
  exports.getDriverInfo = getDriverInfo;
112
112
  async function getWindowSize(driver) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.17.3",
3
+ "version": "1.17.5",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",
@@ -73,10 +73,10 @@
73
73
  "test": "run --top-level mocha './test/**/*.spec.ts'"
74
74
  },
75
75
  "dependencies": {
76
- "@applitools/logger": "2.0.17",
77
- "@applitools/snippets": "2.4.26",
78
- "@applitools/utils": "1.7.3",
79
- "semver": "7.5.4"
76
+ "@applitools/logger": "2.0.18",
77
+ "@applitools/snippets": "2.4.27",
78
+ "@applitools/utils": "1.7.4",
79
+ "semver": "7.6.2"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@types/node": "^12.20.55"
@@ -19,6 +19,7 @@ type Options = {
19
19
  ua?: string;
20
20
  driverServerUrl?: string;
21
21
  capabilities?: Record<string, any>;
22
+ sessionId?: string;
22
23
  };
23
24
  export declare class MockDriver {
24
25
  constructor(options?: Options);
@@ -46,6 +47,7 @@ export declare class MockDriver {
46
47
  browserVersion: any;
47
48
  };
48
49
  get driverServerUrl(): any;
50
+ get sessionId(): any;
49
51
  get capabilities(): any;
50
52
  executeScript(script: any, args?: never[]): Promise<any>;
51
53
  findElement(selector: any, rootElement?: any): Promise<any>;