@applitools/driver 1.8.6 → 1.8.7
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/dist/element.js +3 -1
- package/package.json +1 -1
package/dist/element.js
CHANGED
|
@@ -120,7 +120,9 @@ class Element {
|
|
|
120
120
|
this._logger.log('Extracting region of native element with selector', this.selector);
|
|
121
121
|
const region = await this._spec.getElementRegion(this.driver.target, this.target);
|
|
122
122
|
this._logger.log('Extracted native region', region);
|
|
123
|
-
|
|
123
|
+
const normalizedRegion = await this.driver.normalizeRegion(region);
|
|
124
|
+
const contextScrollingElement = await this.context.getScrollingElement();
|
|
125
|
+
return utils.geometry.offset(normalizedRegion, await contextScrollingElement.getScrollOffset());
|
|
124
126
|
}
|
|
125
127
|
});
|
|
126
128
|
this._logger.log('Extracted region', region);
|