@applitools/driver 1.17.3 → 1.17.4
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,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.17.4](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.3...js/driver@1.17.4) (2024-06-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* cache nml client per driver session ([#2368](https://github.com/Applitools-Dev/sdk/issues/2368)) ([5840389](https://github.com/Applitools-Dev/sdk/commit/5840389f74111c0e0e68026389c755c59a027b74))
|
|
9
|
+
|
|
3
10
|
## [1.17.3](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.2...js/driver@1.17.3) (2024-05-28)
|
|
4
11
|
|
|
5
12
|
|
package/dist/fake/mock-driver.js
CHANGED
|
@@ -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
|
}
|
package/dist/fake/spec-driver.js
CHANGED
|
@@ -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
|
@@ -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>;
|