@applitools/driver 1.11.5 → 1.11.6
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 +15 -14
- package/package.json +4 -4
package/dist/element.js
CHANGED
|
@@ -191,21 +191,22 @@ class Element {
|
|
|
191
191
|
catch (err) {
|
|
192
192
|
this._logger.warn(`Unable to get the attribute 'contentSize' due to the following error: '${err.message}'`);
|
|
193
193
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
194
|
+
if (this.driver.isIOS) {
|
|
195
|
+
const type = await this.getAttribute('type');
|
|
196
|
+
if (type === 'XCUIElementTypeScrollView') {
|
|
197
|
+
const elementRegion = await this._spec.getElementRegion(this.driver.target, this.target);
|
|
198
|
+
const [childElement] = await this.driver.elements({
|
|
199
|
+
type: 'xpath',
|
|
200
|
+
selector: '//XCUIElementTypeScrollView[1]/*', // We cannot be sure that our element is the first one
|
|
201
|
+
});
|
|
202
|
+
const childElementRegion = await this._spec.getElementRegion(this.driver.target, childElement.target);
|
|
203
|
+
return {
|
|
204
|
+
...elementRegion,
|
|
205
|
+
height: childElementRegion.y + childElementRegion.height - elementRegion.y,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
206
208
|
}
|
|
207
|
-
|
|
208
|
-
return this._spec.getElementRegion(this.driver.target, this.target);
|
|
209
|
+
return this._spec.getElementRegion(this.driver.target, this.target);
|
|
209
210
|
}
|
|
210
211
|
async getContentSize(options = {}) {
|
|
211
212
|
if (this._state.contentSize)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/driver",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.6",
|
|
4
4
|
"description": "Applitools universal framework wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@applitools/logger": "1.1.
|
|
91
|
-
"@applitools/snippets": "2.4.
|
|
92
|
-
"@applitools/utils": "1.3.
|
|
90
|
+
"@applitools/logger": "1.1.30",
|
|
91
|
+
"@applitools/snippets": "2.4.8",
|
|
92
|
+
"@applitools/utils": "1.3.16",
|
|
93
93
|
"semver": "7.3.7"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|