@applitools/driver 1.5.1 → 1.5.2

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
@@ -3,6 +3,10 @@
3
3
  ## Unreleased
4
4
 
5
5
 
6
+ ## 1.5.2 - 2022/3/7
7
+
8
+ - exclude iOS Safari from dynamic SRE calculation
9
+
6
10
  ## 1.5.1 - 2022/3/7
7
11
 
8
12
  - fix `getScrollingElement` in mobile native
package/dist/context.js CHANGED
@@ -353,8 +353,9 @@ class Context {
353
353
  this._scrollingElement = await this.element(this._scrollingElement);
354
354
  }
355
355
  else if (this.driver.isWeb) {
356
- const selector = await this.execute(snippets.getDocumentScrollingElement);
357
- this._logger.log(`default SRE is ${selector}`);
356
+ const isIOS = this.driver.isIOS;
357
+ const selector = isIOS ? 'html' : await this.execute(snippets.getDocumentScrollingElement);
358
+ this._logger.log(`default SRE is ${selector}${isIOS ? ' (because Safari on iOS)' : ''}`);
358
359
  this._scrollingElement = await this.element({ type: 'css', selector });
359
360
  }
360
361
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",