@applitools/driver 1.4.11 → 1.4.12
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/driver.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/driver.js
CHANGED
|
@@ -185,14 +185,14 @@ class Driver {
|
|
|
185
185
|
// calculate safe area
|
|
186
186
|
if (this.isIOS && !this._driverInfo.safeArea) {
|
|
187
187
|
this._driverInfo.safeArea = Object.assign({ x: 0, y: 0 }, displaySize);
|
|
188
|
-
const topElement = await this.element({ type: '-ios class chain', selector: 'XCUIElementTypeNavigationBar' });
|
|
188
|
+
const topElement = await this.element({ type: '-ios class chain', selector: '**/XCUIElementTypeNavigationBar' });
|
|
189
189
|
if (topElement) {
|
|
190
190
|
const topRegion = await this._spec.getElementRegion(this.target, topElement.target);
|
|
191
191
|
const topOffset = topRegion.y + topRegion.height;
|
|
192
192
|
this._driverInfo.safeArea.y = topOffset;
|
|
193
193
|
this._driverInfo.safeArea.height -= topOffset;
|
|
194
194
|
}
|
|
195
|
-
const bottomElement = await this.element({ type: '-ios class chain', selector: 'XCUIElementTypeTabBar' });
|
|
195
|
+
const bottomElement = await this.element({ type: '-ios class chain', selector: '**/XCUIElementTypeTabBar' });
|
|
196
196
|
if (bottomElement) {
|
|
197
197
|
const bottomRegion = await this._spec.getElementRegion(this.target, bottomElement.target);
|
|
198
198
|
const bottomOffset = bottomRegion.height;
|