appium-uiautomator2-driver 6.3.0 → 6.4.1
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 +12 -0
- package/README.md +10 -0
- package/build/lib/commands/misc.d.ts +8 -0
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js +11 -0
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/driver.d.ts +5 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +1 -0
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +3 -0
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +3 -0
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/commands/misc.js +15 -0
- package/lib/driver.ts +2 -0
- package/lib/execute-method-map.ts +4 -0
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
package/lib/commands/misc.js
CHANGED
|
@@ -87,6 +87,21 @@ export async function mobileGetDeviceInfo() {
|
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Resets the accessibility cache on the device.
|
|
92
|
+
* This can be useful when the accessibility service cache becomes stale
|
|
93
|
+
* and needs to be refreshed to reflect the current UI state.
|
|
94
|
+
* @this {AndroidUiautomator2Driver}
|
|
95
|
+
* @returns {Promise<void>}
|
|
96
|
+
*/
|
|
97
|
+
export async function mobileResetAccessibilityCache() {
|
|
98
|
+
await this.uiautomator2.jwproxy.command(
|
|
99
|
+
'/appium/reset_ax_cache',
|
|
100
|
+
'POST',
|
|
101
|
+
{}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
/**
|
|
91
106
|
* @template [T=any]
|
|
92
107
|
* @typedef {import('@appium/types').StringRecord<T>} StringRecord
|
package/lib/driver.ts
CHANGED
|
@@ -112,6 +112,7 @@ import {
|
|
|
112
112
|
openNotifications,
|
|
113
113
|
suspendChromedriverProxy,
|
|
114
114
|
mobileGetDeviceInfo,
|
|
115
|
+
mobileResetAccessibilityCache,
|
|
115
116
|
} from './commands/misc';
|
|
116
117
|
import {
|
|
117
118
|
setUrl,
|
|
@@ -1055,6 +1056,7 @@ class AndroidUiautomator2Driver
|
|
|
1055
1056
|
openNotifications = openNotifications;
|
|
1056
1057
|
suspendChromedriverProxy = suspendChromedriverProxy as any;
|
|
1057
1058
|
mobileGetDeviceInfo = mobileGetDeviceInfo;
|
|
1059
|
+
mobileResetAccessibilityCache = mobileResetAccessibilityCache;
|
|
1058
1060
|
|
|
1059
1061
|
getClipboard = getClipboard;
|
|
1060
1062
|
setClipboard = setClipboard;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-uiautomator2-driver",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-uiautomator2-driver",
|
|
9
|
-
"version": "6.
|
|
9
|
+
"version": "6.4.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"appium-adb": "^14.0.0",
|
|
13
13
|
"appium-android-driver": "^12.3.0",
|
|
14
|
-
"appium-uiautomator2-server": "^9.
|
|
14
|
+
"appium-uiautomator2-server": "^9.3.1",
|
|
15
15
|
"asyncbox": "^3.0.0",
|
|
16
16
|
"axios": "^1.12.2",
|
|
17
17
|
"bluebird": "^3.5.1",
|
|
@@ -656,9 +656,9 @@
|
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
658
|
"node_modules/appium-uiautomator2-server": {
|
|
659
|
-
"version": "9.1
|
|
660
|
-
"resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-9.1.
|
|
661
|
-
"integrity": "sha512-
|
|
659
|
+
"version": "9.3.1",
|
|
660
|
+
"resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-9.3.1.tgz",
|
|
661
|
+
"integrity": "sha512-JE8Nf/5cEqW7hkYR+4KDAtzy+ym+tTdxe9Q6bIn9igoYT6dPORSGcRWyRxalu0cddL4E0wXY2YqI4FXfJ0ZJTA==",
|
|
662
662
|
"license": "Apache-2.0",
|
|
663
663
|
"engines": {
|
|
664
664
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"automated testing",
|
|
8
8
|
"android"
|
|
9
9
|
],
|
|
10
|
-
"version": "6.
|
|
10
|
+
"version": "6.4.1",
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/appium/appium-uiautomator2-driver/issues"
|
|
13
13
|
},
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"appium-adb": "^14.0.0",
|
|
60
60
|
"appium-android-driver": "^12.3.0",
|
|
61
|
-
"appium-uiautomator2-server": "^9.
|
|
61
|
+
"appium-uiautomator2-server": "^9.3.1",
|
|
62
62
|
"asyncbox": "^3.0.0",
|
|
63
63
|
"axios": "^1.12.2",
|
|
64
64
|
"bluebird": "^3.5.1",
|