appium-uiautomator2-driver 6.3.0 → 6.4.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.
@@ -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
+ '/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;
@@ -259,4 +259,8 @@ export const executeMethodMap = {
259
259
  'mobile: getClipboard': {
260
260
  command: 'getClipboard',
261
261
  },
262
+
263
+ 'mobile: resetAccessibilityCache': {
264
+ command: 'mobileResetAccessibilityCache',
265
+ },
262
266
  } as const satisfies ExecuteMethodMap<any>;
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "appium-uiautomator2-driver",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-uiautomator2-driver",
9
- "version": "6.3.0",
9
+ "version": "6.4.0",
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.0.0",
14
+ "appium-uiautomator2-server": "^9.2.0",
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.4",
660
- "resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-9.1.4.tgz",
661
- "integrity": "sha512-Y2JWj4ypfDz0GOxNiM5TnmMiMk9pvWUwTlDxkXEUSjqDLwmSTJ9+c0vE76r04pKjDrWlCWzZlleV9xdPgtfplw==",
659
+ "version": "9.3.0",
660
+ "resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-9.3.0.tgz",
661
+ "integrity": "sha512-JXyFhHZs4Bwbn+p08KCBJSuhM/U4zJep9FnDkkJdTgBO38CQDDOxXCyDEKQsqlTC2xeo5QjKvg7moGRptZWxXg==",
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.3.0",
10
+ "version": "6.4.0",
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.0.0",
61
+ "appium-uiautomator2-server": "^9.2.0",
62
62
  "asyncbox": "^3.0.0",
63
63
  "axios": "^1.12.2",
64
64
  "bluebird": "^3.5.1",