appium-uiautomator2-driver 2.42.2 → 2.43.0
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 +7 -0
- package/build/lib/commands/actions.d.ts +22 -1
- package/build/lib/commands/actions.d.ts.map +1 -1
- package/build/lib/commands/actions.js +30 -62
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +28 -1
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +42 -23
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +19 -0
- package/build/lib/commands/app-management.d.ts.map +1 -0
- package/build/lib/commands/app-management.js +45 -0
- package/build/lib/commands/app-management.js.map +1 -0
- package/build/lib/commands/app-strings.d.ts +9 -0
- package/build/lib/commands/app-strings.d.ts.map +1 -1
- package/build/lib/commands/app-strings.js +11 -79
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/battery.d.ts +7 -0
- package/build/lib/commands/battery.d.ts.map +1 -1
- package/build/lib/commands/battery.js +14 -20
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/element.d.ts +100 -1
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +175 -125
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +25 -0
- package/build/lib/commands/execute.d.ts.map +1 -0
- package/build/lib/commands/execute.js +109 -0
- package/build/lib/commands/execute.js.map +1 -0
- package/build/lib/commands/find.d.ts +10 -0
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +25 -27
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +103 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +202 -173
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +47 -0
- package/build/lib/commands/keyboard.d.ts.map +1 -0
- package/build/lib/commands/keyboard.js +92 -0
- package/build/lib/commands/keyboard.js.map +1 -0
- package/build/lib/commands/misc.d.ts +48 -0
- package/build/lib/commands/misc.d.ts.map +1 -0
- package/build/lib/commands/misc.js +75 -0
- package/build/lib/commands/misc.js.map +1 -0
- package/build/lib/commands/navigation.d.ts +20 -0
- package/build/lib/commands/navigation.d.ts.map +1 -0
- package/build/lib/commands/navigation.js +35 -0
- package/build/lib/commands/navigation.js.map +1 -0
- package/build/lib/commands/screenshot.d.ts +24 -1
- package/build/lib/commands/screenshot.d.ts.map +1 -1
- package/build/lib/commands/screenshot.js +87 -64
- package/build/lib/commands/screenshot.js.map +1 -1
- package/build/lib/commands/touch.d.ts +81 -0
- package/build/lib/commands/touch.d.ts.map +1 -1
- package/build/lib/commands/touch.js +158 -41
- package/build/lib/commands/touch.js.map +1 -1
- package/build/lib/commands/viewport.d.ts +37 -1
- package/build/lib/commands/viewport.d.ts.map +1 -1
- package/build/lib/commands/viewport.js +80 -36
- package/build/lib/commands/viewport.js.map +1 -1
- package/build/lib/driver.d.ts +94 -24
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +114 -28
- package/build/lib/driver.js.map +1 -1
- package/build/lib/helpers.d.ts +12 -6
- package/build/lib/helpers.d.ts.map +1 -1
- package/build/lib/helpers.js +18 -18
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/method-map.d.ts +0 -23
- package/build/lib/method-map.d.ts.map +1 -1
- package/build/lib/uiautomator2.js +3 -3
- package/build/lib/uiautomator2.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/commands/actions.js +37 -114
- package/lib/commands/alert.js +51 -37
- package/lib/commands/app-management.js +42 -0
- package/lib/commands/app-strings.js +9 -89
- package/lib/commands/battery.js +16 -26
- package/lib/commands/element.js +235 -214
- package/lib/commands/execute.js +120 -0
- package/lib/commands/find.js +31 -37
- package/lib/commands/gestures.js +252 -234
- package/lib/commands/keyboard.js +103 -0
- package/lib/commands/misc.js +106 -0
- package/lib/commands/navigation.js +31 -0
- package/lib/commands/screenshot.js +96 -77
- package/lib/commands/touch.js +190 -48
- package/lib/commands/viewport.js +100 -50
- package/lib/driver.ts +225 -36
- package/lib/helpers.js +15 -22
- package/lib/uiautomator2.js +3 -3
- package/npm-shrinkwrap.json +31 -31
- package/package.json +2 -2
- package/build/lib/commands/general.d.ts +0 -4
- package/build/lib/commands/general.d.ts.map +0 -1
- package/build/lib/commands/general.js +0 -214
- package/build/lib/commands/general.js.map +0 -1
- package/build/lib/commands/index.d.ts +0 -2
- package/build/lib/commands/index.d.ts.map +0 -1
- package/build/lib/commands/index.js +0 -14
- package/build/lib/commands/index.js.map +0 -1
- package/build/lib/commands/mixins.d.ts +0 -87
- package/build/lib/commands/mixins.d.ts.map +0 -1
- package/build/lib/commands/mixins.js +0 -26
- package/build/lib/commands/mixins.js.map +0 -1
- package/build/lib/utils.d.ts +0 -10
- package/build/lib/utils.d.ts.map +0 -1
- package/build/lib/utils.js +0 -26
- package/build/lib/utils.js.map +0 -1
- package/lib/commands/general.js +0 -289
- package/lib/commands/index.js +0 -11
- package/lib/commands/mixins.ts +0 -169
- package/lib/utils.js +0 -19
|
@@ -1,50 +1,167 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @ts-check
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
exports.releaseActions = exports.performActions = exports.doPerformMultiAction = exports.tap = exports.touchMove = exports.touchUp = exports.touchDown = exports.touchLongClick = exports.doDrag = exports.doSwipe = void 0;
|
|
4
|
+
const support_1 = require("appium/support");
|
|
5
|
+
const driver_1 = require("appium/driver");
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
* @this {AndroidUiautomator2Driver}
|
|
9
|
+
* @param {import('appium-android-driver').SwipeOpts} swipeOpts
|
|
10
|
+
* @returns {Promise<void>}
|
|
11
|
+
*/
|
|
12
|
+
async function doSwipe(swipeOpts) {
|
|
13
|
+
await this.uiautomator2.jwproxy.command(`/touch/perform`, 'POST', swipeOpts);
|
|
14
|
+
}
|
|
15
|
+
exports.doSwipe = doSwipe;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
* @this {AndroidUiautomator2Driver}
|
|
19
|
+
* @param {import('appium-android-driver').DragOpts} dragOpts
|
|
20
|
+
* @returns {Promise<void>}
|
|
21
|
+
*/
|
|
22
|
+
async function doDrag(dragOpts) {
|
|
23
|
+
await this.uiautomator2.jwproxy.command(`/touch/drag`, 'POST', dragOpts);
|
|
24
|
+
}
|
|
25
|
+
exports.doDrag = doDrag;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
* @this {AndroidUiautomator2Driver}
|
|
29
|
+
* @param {string} element
|
|
30
|
+
* @param {number} x
|
|
31
|
+
* @param {number} y
|
|
32
|
+
* @param {number} duration
|
|
33
|
+
* @returns {Promise<void>}
|
|
34
|
+
*/
|
|
35
|
+
async function touchLongClick(element, x, y, duration) {
|
|
36
|
+
let params = { element, x, y, duration };
|
|
37
|
+
await this.uiautomator2.jwproxy.command(`/touch/longclick`, 'POST', { params });
|
|
38
|
+
}
|
|
39
|
+
exports.touchLongClick = touchLongClick;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
* @this {AndroidUiautomator2Driver}
|
|
43
|
+
* @param {string} element
|
|
44
|
+
* @param {number} x
|
|
45
|
+
* @param {number} y
|
|
46
|
+
* @returns {Promise<void>}
|
|
47
|
+
*/
|
|
48
|
+
async function touchDown(element, x, y) {
|
|
49
|
+
let params = { element, x, y };
|
|
50
|
+
await this.uiautomator2.jwproxy.command(`/touch/down`, 'POST', { params });
|
|
51
|
+
}
|
|
52
|
+
exports.touchDown = touchDown;
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated
|
|
55
|
+
* @this {AndroidUiautomator2Driver}
|
|
56
|
+
* @param {string} element
|
|
57
|
+
* @param {number} x
|
|
58
|
+
* @param {number} y
|
|
59
|
+
* @returns {Promise<void>}
|
|
60
|
+
*/
|
|
61
|
+
async function touchUp(element, x, y) {
|
|
62
|
+
let params = { element, x, y };
|
|
63
|
+
await this.uiautomator2.jwproxy.command(`/touch/up`, 'POST', { params });
|
|
64
|
+
}
|
|
65
|
+
exports.touchUp = touchUp;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated
|
|
68
|
+
* @this {AndroidUiautomator2Driver}
|
|
69
|
+
* @param {string} element
|
|
70
|
+
* @param {number} x
|
|
71
|
+
* @param {number} y
|
|
72
|
+
* @returns {Promise<void>}
|
|
73
|
+
*/
|
|
74
|
+
async function touchMove(element, x, y) {
|
|
75
|
+
let params = { element, x, y };
|
|
76
|
+
await this.uiautomator2.jwproxy.command(`/touch/move`, 'POST', { params });
|
|
77
|
+
}
|
|
78
|
+
exports.touchMove = touchMove;
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated
|
|
81
|
+
* @this {AndroidUiautomator2Driver}
|
|
82
|
+
* @param {string?} [elementId=null]
|
|
83
|
+
* @param {number?} [x=null]
|
|
84
|
+
* @param {number?} [y=null]
|
|
85
|
+
* @param {number} [count=1]
|
|
86
|
+
* @returns {Promise<void>}
|
|
87
|
+
*/
|
|
88
|
+
async function tap(elementId = null, x = null, y = null, count = 1) {
|
|
89
|
+
const areCoordinatesDefined = support_1.util.hasValue(x) && support_1.util.hasValue(y);
|
|
90
|
+
if (!support_1.util.hasValue(elementId) && !areCoordinatesDefined) {
|
|
91
|
+
throw new Error(`Either element id to tap or both absolute coordinates should be defined`);
|
|
92
|
+
}
|
|
93
|
+
for (let i = 0; i < count; i++) {
|
|
94
|
+
if (support_1.util.hasValue(elementId) && !areCoordinatesDefined) {
|
|
95
|
+
// we are either tapping on the default location of the element
|
|
96
|
+
// or an offset from the top left corner
|
|
97
|
+
await this.uiautomator2.jwproxy.command(`/element/${elementId}/click`, 'POST');
|
|
18
98
|
}
|
|
19
99
|
else {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
100
|
+
await this.uiautomator2.jwproxy.command(`/appium/tap`, 'POST', {
|
|
101
|
+
x,
|
|
102
|
+
y,
|
|
103
|
+
[driver_1.W3C_ELEMENT_KEY]: elementId,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.tap = tap;
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated
|
|
111
|
+
* @this {AndroidUiautomator2Driver}
|
|
112
|
+
* @param {string} elementId
|
|
113
|
+
* @param {import('appium-android-driver').TouchState[]} states
|
|
114
|
+
* @returns {Promise<void>}
|
|
115
|
+
*/
|
|
116
|
+
async function doPerformMultiAction(elementId, states) {
|
|
117
|
+
let opts;
|
|
118
|
+
if (elementId) {
|
|
119
|
+
opts = {
|
|
120
|
+
elementId,
|
|
121
|
+
actions: states,
|
|
122
|
+
};
|
|
123
|
+
await this.uiautomator2.jwproxy.command('/touch/multi/perform', 'POST', opts);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
opts = {
|
|
127
|
+
actions: states,
|
|
128
|
+
};
|
|
129
|
+
await this.uiautomator2.jwproxy.command('/touch/multi/perform', 'POST', opts);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.doPerformMultiAction = doPerformMultiAction;
|
|
133
|
+
/**
|
|
134
|
+
* @this {AndroidUiautomator2Driver}
|
|
135
|
+
* @param {import('@appium/types').StringRecord} actions
|
|
136
|
+
* @returns {Promise<void>}
|
|
137
|
+
*/
|
|
138
|
+
async function performActions(actions) {
|
|
139
|
+
this.log.debug(`Received the following W3C actions: ${JSON.stringify(actions, null, ' ')}`);
|
|
140
|
+
// This is mandatory, since Selenium API uses MOUSE as the default pointer type
|
|
141
|
+
const preprocessedActions = actions.map((action) => Object.assign({}, action, action.type === 'pointer'
|
|
142
|
+
? {
|
|
143
|
+
parameters: {
|
|
144
|
+
pointerType: 'touch',
|
|
145
|
+
},
|
|
24
146
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line require-await
|
|
42
|
-
async releaseActions() {
|
|
43
|
-
this.log.info('On this platform, releaseActions is a no-op');
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
(0, mixins_1.mixin)(TouchMixin);
|
|
147
|
+
: {}));
|
|
148
|
+
this.log.debug(`Preprocessed actions: ${JSON.stringify(preprocessedActions, null, ' ')}`);
|
|
149
|
+
await this.uiautomator2.jwproxy.command('/actions', 'POST', {
|
|
150
|
+
actions: preprocessedActions,
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
exports.performActions = performActions;
|
|
154
|
+
/**
|
|
155
|
+
* @this {AndroidUiautomator2Driver}
|
|
156
|
+
* @returns {Promise<void>}
|
|
157
|
+
*/
|
|
158
|
+
// eslint-disable-next-line require-await
|
|
159
|
+
async function releaseActions() {
|
|
160
|
+
this.log.info('On this platform, releaseActions is a no-op');
|
|
161
|
+
}
|
|
162
|
+
exports.releaseActions = releaseActions;
|
|
47
163
|
/**
|
|
48
164
|
* @typedef {import('../uiautomator2').UiAutomator2Server} UiAutomator2Server
|
|
165
|
+
* @typedef {import('../driver').AndroidUiautomator2Driver} AndroidUiautomator2Driver
|
|
49
166
|
*/
|
|
50
167
|
//# sourceMappingURL=touch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"touch.js","sourceRoot":"","sources":["../../../lib/commands/touch.js"],"names":[],"mappings":"
|
|
1
|
+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AC7B,CACF,CAAC;AACJ,CAAC;AAxBD,wCAwBC;AAED;;;GAGG;AACH,yCAAyC;AAClC,KAAK,UAAU,cAAc;IAClC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,6CAA6C,CAAC,CAAC;AAC/D,CAAC;AAFD,wCAEC;AAED;;;GAGG"}
|
|
@@ -1,2 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @this {AndroidUiautomator2Driver}
|
|
3
|
+
* @returns {Promise<number>}
|
|
4
|
+
*/
|
|
5
|
+
export function getStatusBarHeight(this: import("../driver").AndroidUiautomator2Driver): Promise<number>;
|
|
6
|
+
/**
|
|
7
|
+
* @this {AndroidUiautomator2Driver}
|
|
8
|
+
* @returns {Promise<string>}
|
|
9
|
+
*/
|
|
10
|
+
export function getDevicePixelRatio(this: import("../driver").AndroidUiautomator2Driver): Promise<string>;
|
|
11
|
+
/**
|
|
12
|
+
* @this {AndroidUiautomator2Driver}
|
|
13
|
+
* @returns {Promise<import('./types').RelativeRect>}
|
|
14
|
+
*/
|
|
15
|
+
export function getViewPortRect(this: import("../driver").AndroidUiautomator2Driver): Promise<import('./types').RelativeRect>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the viewport coordinates.
|
|
18
|
+
* @this {AndroidUiautomator2Driver}
|
|
19
|
+
* @returns {Promise<import('./types').RelativeRect>} The viewport coordinates.
|
|
20
|
+
*/
|
|
21
|
+
export function mobileViewPortRect(this: import("../driver").AndroidUiautomator2Driver): Promise<import('./types').RelativeRect>;
|
|
22
|
+
/**
|
|
23
|
+
* @this {AndroidUiautomator2Driver}
|
|
24
|
+
* @returns {Promise<import('@appium/types').Rect>}
|
|
25
|
+
*/
|
|
26
|
+
export function getWindowRect(this: import("../driver").AndroidUiautomator2Driver): Promise<import('@appium/types').Rect>;
|
|
27
|
+
/**
|
|
28
|
+
* @this {AndroidUiautomator2Driver}
|
|
29
|
+
* @returns {Promise<number>}
|
|
30
|
+
*/
|
|
31
|
+
export function getDisplayDensity(this: import("../driver").AndroidUiautomator2Driver): Promise<number>;
|
|
32
|
+
/**
|
|
33
|
+
* @this {AndroidUiautomator2Driver}
|
|
34
|
+
* @returns {Promise<import('@appium/types').Size>}
|
|
35
|
+
*/
|
|
36
|
+
export function getWindowSize(this: import("../driver").AndroidUiautomator2Driver): Promise<import('@appium/types').Size>;
|
|
37
|
+
export type AndroidUiautomator2Driver = import('../driver').AndroidUiautomator2Driver;
|
|
2
38
|
//# sourceMappingURL=viewport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../lib/commands/viewport.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"viewport.d.ts","sourceRoot":"","sources":["../../../lib/commands/viewport.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,yFAFa,QAAQ,MAAM,CAAC,CAS3B;AAGD;;;GAGG;AACH,0FAFa,QAAQ,MAAM,CAAC,CAQ3B;AAED;;;GAGG;AACH,sFAFa,QAAQ,OAAO,SAAS,EAAE,YAAY,CAAC,CAanD;AAED;;;;GAIG;AACH,yFAFa,QAAQ,OAAO,SAAS,EAAE,YAAY,CAAC,CAInD;AAGD;;;GAGG;AACH,oFAFa,QAAQ,OAAO,eAAe,EAAE,IAAI,CAAC,CAUjD;AAED;;;GAGG;AACH,wFAFa,QAAQ,MAAM,CAAC,CAU3B;AAED;;;GAGG;AACH,oFAFa,QAAQ,OAAO,eAAe,EAAE,IAAI,CAAC,CAUjD;wCAGY,OAAO,WAAW,EAAE,yBAAyB"}
|
|
@@ -1,39 +1,83 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// @ts-check
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @
|
|
8
|
-
* @
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
3
|
+
exports.getWindowSize = exports.getDisplayDensity = exports.getWindowRect = exports.mobileViewPortRect = exports.getViewPortRect = exports.getDevicePixelRatio = exports.getStatusBarHeight = void 0;
|
|
4
|
+
// memoized in constructor
|
|
5
|
+
/**
|
|
6
|
+
* @this {AndroidUiautomator2Driver}
|
|
7
|
+
* @returns {Promise<number>}
|
|
8
|
+
*/
|
|
9
|
+
async function getStatusBarHeight() {
|
|
10
|
+
const { statusBar } = /** @type {{statusBar: number}} */ (await /** @type {import('../uiautomator2').UiAutomator2Server} */ (this.uiautomator2).jwproxy.command(`/appium/device/system_bars`, 'GET', {}));
|
|
11
|
+
return statusBar;
|
|
12
|
+
}
|
|
13
|
+
exports.getStatusBarHeight = getStatusBarHeight;
|
|
14
|
+
// memoized in constructor
|
|
15
|
+
/**
|
|
16
|
+
* @this {AndroidUiautomator2Driver}
|
|
17
|
+
* @returns {Promise<string>}
|
|
18
|
+
*/
|
|
19
|
+
async function getDevicePixelRatio() {
|
|
20
|
+
return String(await /** @type {import('../uiautomator2').UiAutomator2Server} */ (this.uiautomator2).jwproxy.command('/appium/device/pixel_ratio', 'GET', {}));
|
|
21
|
+
}
|
|
22
|
+
exports.getDevicePixelRatio = getDevicePixelRatio;
|
|
23
|
+
/**
|
|
24
|
+
* @this {AndroidUiautomator2Driver}
|
|
25
|
+
* @returns {Promise<import('./types').RelativeRect>}
|
|
26
|
+
*/
|
|
27
|
+
async function getViewPortRect() {
|
|
28
|
+
const windowSize = await this.getWindowSize();
|
|
29
|
+
const statusBarHeight = await this.getStatusBarHeight();
|
|
30
|
+
// android returns the upscaled window size, so to get the true size of the
|
|
31
|
+
// rect we have to downscale
|
|
32
|
+
return {
|
|
33
|
+
left: 0,
|
|
34
|
+
top: statusBarHeight,
|
|
35
|
+
width: windowSize.width,
|
|
36
|
+
height: windowSize.height - statusBarHeight,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.getViewPortRect = getViewPortRect;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the viewport coordinates.
|
|
42
|
+
* @this {AndroidUiautomator2Driver}
|
|
43
|
+
* @returns {Promise<import('./types').RelativeRect>} The viewport coordinates.
|
|
44
|
+
*/
|
|
45
|
+
async function mobileViewPortRect() {
|
|
46
|
+
return await this.getViewPortRect();
|
|
47
|
+
}
|
|
48
|
+
exports.mobileViewPortRect = mobileViewPortRect;
|
|
49
|
+
// For W3C
|
|
50
|
+
/**
|
|
51
|
+
* @this {AndroidUiautomator2Driver}
|
|
52
|
+
* @returns {Promise<import('@appium/types').Rect>}
|
|
53
|
+
*/
|
|
54
|
+
async function getWindowRect() {
|
|
55
|
+
const { width, height } = await this.getWindowSize();
|
|
56
|
+
return {
|
|
57
|
+
width,
|
|
58
|
+
height,
|
|
59
|
+
x: 0,
|
|
60
|
+
y: 0,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.getWindowRect = getWindowRect;
|
|
64
|
+
/**
|
|
65
|
+
* @this {AndroidUiautomator2Driver}
|
|
66
|
+
* @returns {Promise<number>}
|
|
67
|
+
*/
|
|
68
|
+
async function getDisplayDensity() {
|
|
69
|
+
return /** @type {number} */ (await this.uiautomator2.jwproxy.command('/appium/device/display_density', 'GET', {}));
|
|
70
|
+
}
|
|
71
|
+
exports.getDisplayDensity = getDisplayDensity;
|
|
72
|
+
/**
|
|
73
|
+
* @this {AndroidUiautomator2Driver}
|
|
74
|
+
* @returns {Promise<import('@appium/types').Size>}
|
|
75
|
+
*/
|
|
76
|
+
async function getWindowSize() {
|
|
77
|
+
return /** @type {import('@appium/types').Size} */ (await this.uiautomator2.jwproxy.command('/window/current/size', 'GET', {}));
|
|
78
|
+
}
|
|
79
|
+
exports.getWindowSize = getWindowSize;
|
|
80
|
+
/**
|
|
81
|
+
* @typedef {import('../driver').AndroidUiautomator2Driver} AndroidUiautomator2Driver
|
|
82
|
+
*/
|
|
39
83
|
//# sourceMappingURL=viewport.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../../lib/commands/viewport.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"viewport.js","sourceRoot":"","sources":["../../../lib/commands/viewport.js"],"names":[],"mappings":";;;AACA,0BAA0B;AAC1B;;;GAGG;AACI,KAAK,UAAU,kBAAkB;IACtC,MAAM,EAAC,SAAS,EAAC,GAAG,kCAAkC,CAAC,CACrD,MAAM,2DAA2D,CAAC,CAChE,IAAI,CAAC,YAAY,CAClB,CAAC,OAAO,CAAC,OAAO,CAAC,4BAA4B,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3D,CAAC;IACF,OAAO,SAAS,CAAC;AACnB,CAAC;AAPD,gDAOC;AAED,0BAA0B;AAC1B;;;GAGG;AACI,KAAK,UAAU,mBAAmB;IACvC,OAAO,MAAM,CACX,MAAM,2DAA2D,CAAC,CAChE,IAAI,CAAC,YAAY,CAClB,CAAC,OAAO,CAAC,OAAO,CAAC,4BAA4B,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3D,CAAC;AACJ,CAAC;AAND,kDAMC;AAED;;;GAGG;AACI,KAAK,UAAU,eAAe;IACnC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9C,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACxD,2EAA2E;IAC3E,4BAA4B;IAC5B,OAAO;QACL,IAAI,EAAE,CAAC;QACP,GAAG,EAAE,eAAe;QACpB,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,eAAe;KAC5C,CAAC;AACJ,CAAC;AAXD,0CAWC;AAED;;;;GAIG;AACI,KAAK,UAAU,kBAAkB;IACtC,OAAO,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;AACtC,CAAC;AAFD,gDAEC;AAED,UAAU;AACV;;;GAGG;AACI,KAAK,UAAU,aAAa;IACjC,MAAM,EAAC,KAAK,EAAE,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;IACnD,OAAO;QACL,KAAK;QACL,MAAM;QACN,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACL,CAAC;AACJ,CAAC;AARD,sCAQC;AAED;;;GAGG;AACI,KAAK,UAAU,iBAAiB;IACrC,OAAO,qBAAqB,CAAC,CAC3B,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CACrC,gCAAgC,EAChC,KAAK,EACL,EAAE,CACH,CACF,CAAC;AACJ,CAAC;AARD,8CAQC;AAED;;;GAGG;AACI,KAAK,UAAU,aAAa;IACjC,OAAO,2CAA2C,CAAC,CACjD,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CACrC,sBAAsB,EACtB,KAAK,EACL,EAAE,CACH,CACF,CAAC;AACJ,CAAC;AARD,sCAQC;AAED;;GAEG"}
|
package/build/lib/driver.d.ts
CHANGED
|
@@ -4,6 +4,21 @@ import { mjpeg } from 'appium/support';
|
|
|
4
4
|
import { type Uiautomator2Constraints } from './constraints';
|
|
5
5
|
import type { Uiautomator2Settings, Uiautomator2DeviceDetails, Uiautomator2DriverCaps, Uiautomator2DriverOpts, Uiautomator2SessionCaps, Uiautomator2StartSessionOpts, W3CUiautomator2DriverCaps } from './types';
|
|
6
6
|
import { UiAutomator2Server } from './uiautomator2';
|
|
7
|
+
import { mobileGetActionHistory, mobileScheduleAction, mobileUnscheduleAction } from './commands/actions';
|
|
8
|
+
import { getAlertText, mobileAcceptAlert, mobileDismissAlert, postAcceptAlert, postDismissAlert } from './commands/alert';
|
|
9
|
+
import { mobileInstallMultipleApks, mobileBackgroundApp } from './commands/app-management';
|
|
10
|
+
import { mobileGetAppStrings } from './commands/app-strings';
|
|
11
|
+
import { mobileGetBatteryInfo } from './commands/battery';
|
|
12
|
+
import { active, getAttribute, elementEnabled, elementDisplayed, elementSelected, getName, getLocation, getSize, getElementRect, getElementScreenshot, getText, setValueImmediate, doSetElementValue, click, clear, mobileReplaceElementValue } from './commands/element';
|
|
13
|
+
import { execute, executeMobile } from './commands/execute';
|
|
14
|
+
import { doFindElementOrEls } from './commands/find';
|
|
15
|
+
import { mobileClickGesture, mobileDoubleClickGesture, mobileDragGesture, mobileFlingGesture, mobileLongClickGesture, mobilePinchCloseGesture, mobilePinchOpenGesture, mobileScroll, mobileScrollBackTo, mobileScrollGesture, mobileSwipeGesture } from './commands/gestures';
|
|
16
|
+
import { pressKeyCode, longPressKeyCode, mobilePressKey, mobileType, doSendKeys, keyevent } from './commands/keyboard';
|
|
17
|
+
import { getPageSource, getOrientation, setOrientation, getClipboard, openNotifications, suspendChromedriverProxy, mobileGetDeviceInfo } from './commands/misc';
|
|
18
|
+
import { setUrl, mobileDeepLink, back } from './commands/navigation';
|
|
19
|
+
import { mobileScreenshots, mobileViewportScreenshot, getScreenshot, getViewportScreenshot } from './commands/screenshot';
|
|
20
|
+
import { doSwipe, doDrag, touchDown, touchLongClick, touchMove, touchUp, tap, doPerformMultiAction, performActions, releaseActions } from './commands/touch';
|
|
21
|
+
import { getStatusBarHeight, getDevicePixelRatio, getDisplayDensity, getViewPortRect, getWindowRect, getWindowSize, mobileViewPortRect } from './commands/viewport';
|
|
7
22
|
declare class AndroidUiautomator2Driver extends AndroidDriver implements ExternalDriver<Uiautomator2Constraints, string, StringRecord> {
|
|
8
23
|
static newMethodMap: {
|
|
9
24
|
readonly '/session/:sessionId/appium/device/get_clipboard': {
|
|
@@ -118,14 +133,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
118
133
|
};
|
|
119
134
|
};
|
|
120
135
|
};
|
|
121
|
-
readonly '/session/:sessionId/touch/flick': {
|
|
122
|
-
readonly POST: {
|
|
123
|
-
readonly command: "flick";
|
|
124
|
-
readonly payloadParams: {
|
|
125
|
-
readonly optional: readonly ["element", "xspeed", "yspeed", "xoffset", "yoffset", "speed"];
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
136
|
readonly '/session/:sessionId/touch/perform': {
|
|
130
137
|
readonly POST: {
|
|
131
138
|
readonly command: "performTouch";
|
|
@@ -345,21 +352,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
345
352
|
readonly command: "getDisplayDensity";
|
|
346
353
|
};
|
|
347
354
|
};
|
|
348
|
-
readonly '/session/:sessionId/appium/app/launch': {
|
|
349
|
-
readonly POST: {
|
|
350
|
-
readonly command: "launchApp";
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
readonly '/session/:sessionId/appium/app/close': {
|
|
354
|
-
readonly POST: {
|
|
355
|
-
readonly command: "closeApp";
|
|
356
|
-
};
|
|
357
|
-
};
|
|
358
|
-
readonly '/session/:sessionId/appium/app/reset': {
|
|
359
|
-
readonly POST: {
|
|
360
|
-
readonly command: "reset";
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
355
|
readonly '/session/:sessionId/appium/app/background': {
|
|
364
356
|
readonly POST: {
|
|
365
357
|
readonly command: "background";
|
|
@@ -921,7 +913,85 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
921
913
|
getProxyAvoidList(): RouteMatcher[];
|
|
922
914
|
updateSettings(settings: Uiautomator2Settings): Promise<void>;
|
|
923
915
|
getSettings(): Promise<any>;
|
|
916
|
+
mobileGetActionHistory: typeof mobileGetActionHistory;
|
|
917
|
+
mobileScheduleAction: typeof mobileScheduleAction;
|
|
918
|
+
mobileUnscheduleAction: typeof mobileUnscheduleAction;
|
|
919
|
+
getAlertText: typeof getAlertText;
|
|
920
|
+
mobileAcceptAlert: typeof mobileAcceptAlert;
|
|
921
|
+
mobileDismissAlert: typeof mobileDismissAlert;
|
|
922
|
+
postAcceptAlert: typeof postAcceptAlert;
|
|
923
|
+
postDismissAlert: typeof postDismissAlert;
|
|
924
|
+
mobileInstallMultipleApks: typeof mobileInstallMultipleApks;
|
|
925
|
+
mobileBackgroundApp: typeof mobileBackgroundApp;
|
|
926
|
+
mobileGetAppStrings: typeof mobileGetAppStrings;
|
|
927
|
+
mobileGetBatteryInfo: typeof mobileGetBatteryInfo;
|
|
928
|
+
active: typeof active;
|
|
929
|
+
getAttribute: typeof getAttribute;
|
|
930
|
+
elementEnabled: typeof elementEnabled;
|
|
931
|
+
elementDisplayed: typeof elementDisplayed;
|
|
932
|
+
elementSelected: typeof elementSelected;
|
|
933
|
+
getName: typeof getName;
|
|
934
|
+
getLocation: typeof getLocation;
|
|
935
|
+
getSize: typeof getSize;
|
|
936
|
+
getElementRect: typeof getElementRect;
|
|
937
|
+
getElementScreenshot: typeof getElementScreenshot;
|
|
938
|
+
getText: typeof getText;
|
|
939
|
+
setValueImmediate: typeof setValueImmediate;
|
|
940
|
+
doSetElementValue: typeof doSetElementValue;
|
|
941
|
+
click: typeof click;
|
|
942
|
+
clear: typeof clear;
|
|
943
|
+
mobileReplaceElementValue: typeof mobileReplaceElementValue;
|
|
944
|
+
execute: typeof execute;
|
|
945
|
+
executeMobile: typeof executeMobile;
|
|
946
|
+
doFindElementOrEls: typeof doFindElementOrEls;
|
|
947
|
+
mobileClickGesture: typeof mobileClickGesture;
|
|
948
|
+
mobileDoubleClickGesture: typeof mobileDoubleClickGesture;
|
|
949
|
+
mobileDragGesture: typeof mobileDragGesture;
|
|
950
|
+
mobileFlingGesture: typeof mobileFlingGesture;
|
|
951
|
+
mobileLongClickGesture: typeof mobileLongClickGesture;
|
|
952
|
+
mobilePinchCloseGesture: typeof mobilePinchCloseGesture;
|
|
953
|
+
mobilePinchOpenGesture: typeof mobilePinchOpenGesture;
|
|
954
|
+
mobileScroll: typeof mobileScroll;
|
|
955
|
+
mobileScrollBackTo: typeof mobileScrollBackTo;
|
|
956
|
+
mobileScrollGesture: typeof mobileScrollGesture;
|
|
957
|
+
mobileSwipeGesture: typeof mobileSwipeGesture;
|
|
958
|
+
pressKeyCode: typeof pressKeyCode;
|
|
959
|
+
longPressKeyCode: typeof longPressKeyCode;
|
|
960
|
+
mobilePressKey: typeof mobilePressKey;
|
|
961
|
+
mobileType: typeof mobileType;
|
|
962
|
+
doSendKeys: typeof doSendKeys;
|
|
963
|
+
keyevent: typeof keyevent;
|
|
964
|
+
getPageSource: typeof getPageSource;
|
|
965
|
+
getOrientation: typeof getOrientation;
|
|
966
|
+
setOrientation: typeof setOrientation;
|
|
967
|
+
getClipboard: typeof getClipboard;
|
|
968
|
+
openNotifications: typeof openNotifications;
|
|
969
|
+
suspendChromedriverProxy: typeof suspendChromedriverProxy;
|
|
970
|
+
mobileGetDeviceInfo: typeof mobileGetDeviceInfo;
|
|
971
|
+
setUrl: typeof setUrl;
|
|
972
|
+
mobileDeepLink: typeof mobileDeepLink;
|
|
973
|
+
back: typeof back;
|
|
974
|
+
mobileScreenshots: typeof mobileScreenshots;
|
|
975
|
+
mobileViewportScreenshot: typeof mobileViewportScreenshot;
|
|
976
|
+
getScreenshot: typeof getScreenshot;
|
|
977
|
+
getViewportScreenshot: typeof getViewportScreenshot;
|
|
978
|
+
doSwipe: typeof doSwipe;
|
|
979
|
+
doDrag: typeof doDrag;
|
|
980
|
+
touchDown: typeof touchDown;
|
|
981
|
+
touchLongClick: typeof touchLongClick;
|
|
982
|
+
touchMove: typeof touchMove;
|
|
983
|
+
touchUp: typeof touchUp;
|
|
984
|
+
tap: typeof tap;
|
|
985
|
+
doPerformMultiAction: typeof doPerformMultiAction;
|
|
986
|
+
performActions: typeof performActions;
|
|
987
|
+
releaseActions: typeof releaseActions;
|
|
988
|
+
getStatusBarHeight: typeof getStatusBarHeight;
|
|
989
|
+
getDevicePixelRatio: typeof getDevicePixelRatio;
|
|
990
|
+
getDisplayDensity: typeof getDisplayDensity;
|
|
991
|
+
getViewPortRect: typeof getViewPortRect;
|
|
992
|
+
getWindowRect: typeof getWindowRect;
|
|
993
|
+
getWindowSize: typeof getWindowSize;
|
|
994
|
+
mobileViewPortRect: typeof mobileViewPortRect;
|
|
924
995
|
}
|
|
925
|
-
import './commands';
|
|
926
996
|
export { AndroidUiautomator2Driver };
|
|
927
997
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,UAAU,EACV,cAAc,EACd,WAAW,EAEX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,UAAU,EACV,cAAc,EACd,WAAW,EAEX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,aAAsB,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAK,KAAK,EAAO,MAAM,gBAAgB,CAAC;AAQ/C,OAAiC,EAAC,KAAK,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAMrF,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EAEvB,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EAA4C,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY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