@applitools/driver
Advanced tools
Comparing version 1.17.5 to 1.18.0
# Changelog | ||
## [1.18.0](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.5...js/driver@1.18.0) (2024-07-23) | ||
### Features | ||
* disable broker url cache ([#2428](https://github.com/Applitools-Dev/sdk/issues/2428)) ([cb8d5fe](https://github.com/Applitools-Dev/sdk/commit/cb8d5fefb13d3ab42984d2bd4d4ac3d4e10646b0)) | ||
### Bug Fixes | ||
* executing web script on mobile environment ([#2380](https://github.com/Applitools-Dev/sdk/issues/2380)) ([da2e551](https://github.com/Applitools-Dev/sdk/commit/da2e551e01082d3cc21b9da5b43e6680233c080d)) | ||
## [1.17.5](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.17.4...js/driver@1.17.5) (2024-06-26) | ||
@@ -4,0 +16,0 @@ |
@@ -92,3 +92,3 @@ "use strict"; | ||
} | ||
async refresh({ reset } = {}) { | ||
async refresh({ reset, name } = {}) { | ||
if (reset) { | ||
@@ -107,2 +107,5 @@ if (utils.general.getEnvValue('AVOID_DRIVER_STATE_REST', 'boolean')) { | ||
} | ||
if (name === 'NATIVE_APP') { | ||
return reset ? resetReference(this) : this; | ||
} | ||
const spec = this._spec; | ||
@@ -543,3 +546,3 @@ let currentContext = this.currentContext.target; | ||
await this._spec.switchWorld(this.target, name); | ||
await this.refresh({ reset: true }); | ||
await this.refresh({ reset: true, name }); | ||
} | ||
@@ -546,0 +549,0 @@ catch (error) { |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.17.5", | ||
"version": "1.18.0", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -35,3 +35,3 @@ import type { Size, Region } from '@applitools/utils'; | ||
get target(): T['driver']; | ||
get guid(): string | undefined; | ||
get guid(): string; | ||
get currentContext(): Context<T>; | ||
@@ -42,4 +42,5 @@ get mainContext(): Context<T>; | ||
reloadPage(): Promise<this>; | ||
refresh({ reset }?: { | ||
refresh({ reset, name }?: { | ||
reset?: boolean; | ||
name?: string; | ||
}): Promise<this>; | ||
@@ -46,0 +47,0 @@ getDriverInfo({ force }?: { |
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
276249
4330