@applitools/driver
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -7,3 +7,3 @@ { | ||
"version": "file:../dry-run.tgz", | ||
"integrity": "sha512-AvnuMezSG970vwPR9njia77mVTPF8JuGBFJaUrPUuNwDSpAlJKoCts1ZIwE4rpl2zh8aCEPdFdOl8Bu76bTlGQ==", | ||
"integrity": "sha512-L6QdrdfYt83pLxx2I95vV9H5phxk9LGc4ZUwVeEJFwJPOy5mZImqRtf+5jWXLEfOCPIft88wB6kl3fHMZhLWFg==", | ||
"requires": { | ||
@@ -10,0 +10,0 @@ "@applitools/snippets": "2.1.4", |
@@ -6,2 +6,6 @@ # Change Log | ||
## 1.1.2 - 2021/8/8 | ||
- fix default method to compare elements | ||
## 1.1.1 - 2021/8/7 | ||
@@ -8,0 +12,0 @@ |
@@ -67,8 +67,10 @@ "use strict"; | ||
return false; | ||
element = element instanceof Element ? element.target : element; | ||
if (this._spec.isEqualElements) { | ||
element = element instanceof Element ? element.target : element; | ||
return this._spec.isEqualElements(this.context.target, this.target, element); | ||
} | ||
else { | ||
return this.context.execute(snippets.isEqualElements, [this, element]).catch(() => false); | ||
return this._spec | ||
.executeScript(this.context.target, snippets.isEqualElements, [this.target, element]) | ||
.catch(() => false); | ||
} | ||
@@ -75,0 +77,0 @@ } |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -76,7 +76,9 @@ import type * as types from '@applitools/types' | ||
element = element instanceof Element ? element.target : element | ||
if (this._spec.isEqualElements) { | ||
element = element instanceof Element ? element.target : element | ||
return this._spec.isEqualElements(this.context.target, this.target, element) | ||
} else { | ||
return this.context.execute(snippets.isEqualElements, [this, element]).catch(() => false) | ||
return this._spec | ||
.executeScript(this.context.target, snippets.isEqualElements, [this.target, element]) | ||
.catch(() => false) | ||
} | ||
@@ -83,0 +85,0 @@ } |
Sorry, the diff of this file is not supported yet
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
222938
4010