@applitools/driver 1.4.10 → 1.4.11

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,9 +3,14 @@
3
3
  ## Unreleased
4
4
 
5
5
 
6
+ ## 1.4.11 - 2022/2/8
7
+
8
+ - use `-ios class chain` selectors instead of `class name` for iOS specific elements
9
+
6
10
  ## 1.4.10 - 2022/2/4
7
11
 
8
12
  - updated to @applitools/types@1.0.24 (from 1.0.23)
13
+
9
14
  ### 📝 DOCUMENTATION
10
15
  - Create a README.md with a description for basic concepts and spec driver methods.
11
16
 
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: 'class name', 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: 'class name', 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/driver",
3
- "version": "1.4.10",
3
+ "version": "1.4.11",
4
4
  "description": "Applitools universal framework wrapper",
5
5
  "keywords": [
6
6
  "applitools",