@applitools/driver 1.4.12 → 1.4.13
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 +5 -0
- package/dist/element.js +5 -2
- package/dist/helper-android.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/element.js
CHANGED
|
@@ -220,14 +220,17 @@ class Element {
|
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
async getTouchPadding() {
|
|
223
|
+
var _a;
|
|
223
224
|
if (this._touchPadding == null) {
|
|
224
225
|
if (this.driver.isWeb)
|
|
225
226
|
this._touchPadding = 0;
|
|
226
227
|
else if (this.driver.isIOS)
|
|
227
228
|
this._touchPadding = 10;
|
|
228
229
|
else if (this.driver.isAndroid) {
|
|
229
|
-
const
|
|
230
|
-
|
|
230
|
+
const data = await this.getAttribute('contentSize')
|
|
231
|
+
.then(JSON.parse)
|
|
232
|
+
.catch(() => null);
|
|
233
|
+
this._touchPadding = (_a = data === null || data === void 0 ? void 0 : data.touchPadding) !== null && _a !== void 0 ? _a : 24;
|
|
231
234
|
}
|
|
232
235
|
}
|
|
233
236
|
return this._touchPadding;
|
package/dist/helper-android.js
CHANGED
|
@@ -12,8 +12,8 @@ class HelperAndroid {
|
|
|
12
12
|
const { spec, driver, logger } = options;
|
|
13
13
|
let legacy = false;
|
|
14
14
|
let element = await driver.element({
|
|
15
|
-
type: '
|
|
16
|
-
selector: '
|
|
15
|
+
type: 'xpath',
|
|
16
|
+
selector: '//*[@content-desc="EyesAppiumHelperEDT"]',
|
|
17
17
|
});
|
|
18
18
|
if (!element) {
|
|
19
19
|
legacy = true;
|
|
@@ -37,7 +37,7 @@ class HelperAndroid {
|
|
|
37
37
|
contentHeight = await this._element.getText();
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
|
-
const elementId = this._getElementId(element);
|
|
40
|
+
const elementId = await this._getElementId(element);
|
|
41
41
|
if (!elementId)
|
|
42
42
|
return null;
|
|
43
43
|
await this._element.type(`offset;${elementId};0;0;0`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/driver",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.13",
|
|
4
4
|
"description": "Applitools universal framework wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@applitools/snippets": "2.1.12",
|
|
77
77
|
"@applitools/types": "1.0.24",
|
|
78
|
-
"@applitools/utils": "1.2.
|
|
78
|
+
"@applitools/utils": "1.2.12"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@applitools/sdk-release-kit": "0.13.11",
|