@applitools/driver
Advanced tools
Comparing version 1.11.23 to 1.11.24
@@ -18,2 +18,3 @@ "use strict"; | ||
isChrome: isChrome(capabilities), | ||
isExecutionGridClient: Boolean(capabilities.applitools), | ||
}; | ||
@@ -20,0 +21,0 @@ if (info.isMobile) { |
@@ -162,2 +162,16 @@ "use strict"; | ||
} | ||
get sessionId() { | ||
var _a; | ||
return (_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.sessionId; | ||
} | ||
get isExecutionGridClient() { | ||
var _a; | ||
return !!((_a = this._driverInfo) === null || _a === void 0 ? void 0 : _a.isExecutionGridClient); | ||
} | ||
get isExecutionGrid() { | ||
var _a, _b; | ||
if (this.isExecutionGridClient) | ||
return true; | ||
return /exec-wus.applitools.com/.test((_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.extractHostName) === null || _b === void 0 ? void 0 : _b.call(_a, this.target)); | ||
} | ||
updateCurrentContext(context) { | ||
@@ -399,2 +413,7 @@ this._currentContext = context; | ||
// end world | ||
async getSessionMetadata() { | ||
var _a; | ||
if (this.isExecutionGridClient) | ||
return await ((_a = this._spec) === null || _a === void 0 ? void 0 : _a.getSessionMetadata(this.target)); | ||
} | ||
async refreshContexts() { | ||
@@ -401,0 +420,0 @@ if (this.isNative) |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.11.23", | ||
"version": "1.11.24", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -90,5 +90,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@applitools/logger": "1.1.38", | ||
"@applitools/logger": "1.1.39", | ||
"@applitools/snippets": "2.4.13", | ||
"@applitools/utils": "1.3.24", | ||
"@applitools/utils": "1.3.25", | ||
"semver": "7.3.7" | ||
@@ -95,0 +95,0 @@ }, |
@@ -63,2 +63,5 @@ /// <reference types="node" /> | ||
get isEdgeLegacy(): boolean; | ||
get sessionId(): string; | ||
get isExecutionGridClient(): boolean; | ||
get isExecutionGrid(): boolean; | ||
updateCurrentContext(context: Context<TDriver, TContext, TElement, TSelector>): void; | ||
@@ -79,2 +82,3 @@ init(): Promise<this>; | ||
}>; | ||
getSessionMetadata(): Promise<any>; | ||
refreshContexts(): Promise<Context<TDriver, TContext, TElement, TSelector>>; | ||
@@ -81,0 +85,0 @@ switchTo(context: Context<TDriver, TContext, TElement, TSelector>): Promise<Context<TDriver, TContext, TElement, TSelector>>; |
@@ -38,2 +38,3 @@ /// <reference types="node" /> | ||
}; | ||
isExecutionGridClient?: boolean; | ||
}; | ||
@@ -104,2 +105,3 @@ export declare type WaitOptions = { | ||
switchWorld?(driver: TDriver, id: string): Promise<void>; | ||
getSessionMetadata?(driver: TDriver): 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
240402
3928
+ Added@applitools/logger@1.1.39(transitive)
+ Added@applitools/utils@1.3.25(transitive)
- Removed@applitools/logger@1.1.38(transitive)
- Removed@applitools/utils@1.3.24(transitive)
Updated@applitools/logger@1.1.39
Updated@applitools/utils@1.3.25