@applitools/driver
Advanced tools
Comparing version 1.17.3 to 1.17.4
# Changelog | ||
## [1.17.4](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.3...js/driver@1.17.4) (2024-06-11) | ||
### Bug Fixes | ||
* cache nml client per driver session ([#2368](https://github.com/Applitools-Dev/sdk/issues/2368)) ([5840389](https://github.com/Applitools-Dev/sdk/commit/5840389f74111c0e0e68026389c755c59a027b74)) | ||
## [1.17.3](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.2...js/driver@1.17.3) (2024-05-28) | ||
@@ -4,0 +11,0 @@ |
@@ -26,3 +26,3 @@ "use strict"; | ||
constructor(options = {}) { | ||
const { viewport = { width: 1000, height: 1000 }, device, platform, browser, ua, driverServerUrl, capabilities, } = options; | ||
const { viewport = { width: 1000, height: 1000 }, device, platform, browser, ua, driverServerUrl, capabilities, sessionId, } = options; | ||
this._device = device; | ||
@@ -39,2 +39,3 @@ this._platform = platform; | ||
this._capabilities = capabilities; | ||
this._sessionId = sessionId; | ||
this._methods = new Map(); | ||
@@ -275,2 +276,5 @@ this._scripts = new Map(); | ||
} | ||
get sessionId() { | ||
return this._sessionId; | ||
} | ||
get capabilities() { | ||
@@ -277,0 +281,0 @@ return this._capabilities; |
@@ -109,3 +109,3 @@ "use strict"; | ||
async function getDriverInfo(driver) { | ||
return { environment: driver.environment, driverServerUrl: driver.driverServerUrl }; | ||
return { environment: driver.environment, driverServerUrl: driver.driverServerUrl, sessionId: driver.sessionId }; | ||
} | ||
@@ -112,0 +112,0 @@ exports.getDriverInfo = getDriverInfo; |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.17.3", | ||
"version": "1.17.4", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -22,2 +22,3 @@ type Options = { | ||
capabilities?: Record<string, any>; | ||
sessionId?: string; | ||
}; | ||
@@ -50,2 +51,3 @@ export declare class MockDriver { | ||
get driverServerUrl(): any; | ||
get sessionId(): any; | ||
get capabilities(): any; | ||
@@ -52,0 +54,0 @@ executeScript(script: any, args?: never[]): Promise<any>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
274800
4326