@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 +4 -0
- package/dist/context.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
357
|
-
this.
|
|
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 {
|