appium-uiautomator2-driver 7.5.1 → 7.5.2

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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## [7.5.2](https://github.com/appium/appium-uiautomator2-driver/compare/v7.5.1...v7.5.2) (2026-05-24)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * Bump uia2-server ([#1004](https://github.com/appium/appium-uiautomator2-driver/issues/1004)) ([ce0d583](https://github.com/appium/appium-uiautomator2-driver/commit/ce0d5836c1ccd9f79335112c7b19b68e2502298c))
6
+
1
7
  ## [7.5.1](https://github.com/appium/appium-uiautomator2-driver/compare/v7.5.0...v7.5.1) (2026-05-21)
2
8
 
3
9
  ### Miscellaneous Chores
package/README.md CHANGED
@@ -2099,7 +2099,11 @@ The general resources naming convention for Android apps is `<app_id>:id/<resour
2099
2099
 
2100
2100
  ### ClassCastException: java.util.ArrayList$ListItr cannot be cast to org.eclipse.wst.xml.xpath2.processor
2101
2101
 
2102
- This exception happens due to a known bug in the [Eclipse's Psychopath](https://wiki.eclipse.org/PsychoPathXPathProcessor) library used by UiAutomator2 driver to support [XPath2](https://www.w3.org/TR/xpath20/) syntax. The issue has been observed while using `following::` or `preceding::` axes in xpath queries. Unfortunately, this library has not been maintained for quite a while, and there is no good open source alternative to it. The only known workaround would be to forcefully switch the driver's XPath processor to the standard Android's Apache Harmony-based XPath1, which does not have this issue (but also does not support XPath2 syntax). See the Appium issue [#16142](https://github.com/appium/appium/issues/16142#issuecomment-1003954166) for more details.
2102
+ This exception was caused by a bug in the [Eclipse's Psychopath](https://wiki.eclipse.org/PsychoPathXPathProcessor) library used by UiAutomator2 driver to support [XPath2](https://www.w3.org/TR/xpath20/) syntax. The issue was observed while using `following::` or `preceding::` axes in xpath queries (for example, `(//android.widget.TextView[@text='some, text']/following::android.widget.ImageButton)[1]`).
2103
+
2104
+ The bug has been fixed in UiAutomator2 driver version `7.5.2+`. Upgrade to use XPath2 `following::` and `preceding::` axes in your element lookup queries.
2105
+
2106
+ If you still encounter this exception on an older driver version, the workaround is to forcefully switch the driver's XPath processor to the standard Android's Apache Harmony-based XPath1, which does not have this issue (but also does not support XPath2 syntax). See the Appium issue [#16142](https://github.com/appium/appium/issues/16142#issuecomment-1003954166) for more details.
2103
2107
 
2104
2108
  ### A gesture, like scroll or swipe, does not have any effect / It is unclear how to do it
2105
2109
 
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "appium-uiautomator2-driver",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-uiautomator2-driver",
9
- "version": "7.5.1",
9
+ "version": "7.5.2",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "appium-adb": "^15.0.0",
13
13
  "appium-android-driver": "^13.2.3",
14
- "appium-uiautomator2-server": "^10.1.0",
14
+ "appium-uiautomator2-server": "^10.2.1",
15
15
  "asyncbox": "^6.0.1",
16
16
  "axios": "^1.16.0",
17
17
  "css-selector-parser": "^3.0.0",
@@ -305,16 +305,6 @@
305
305
  "node": ">=0.1.90"
306
306
  }
307
307
  },
308
- "node_modules/@emnapi/runtime": {
309
- "version": "1.10.0",
310
- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",
311
- "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",
312
- "extraneous": true,
313
- "license": "MIT",
314
- "dependencies": {
315
- "tslib": "^2.4.0"
316
- }
317
- },
318
308
  "node_modules/@img/colour": {
319
309
  "version": "1.1.0",
320
310
  "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
@@ -626,9 +616,9 @@
626
616
  }
627
617
  },
628
618
  "node_modules/appium-uiautomator2-server": {
629
- "version": "10.1.0",
630
- "resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-10.1.0.tgz",
631
- "integrity": "sha512-4YvWcyTTn1UtWvB3giNtGCo0yaji2c+7mcDwsOyk6dMoQ1JO0noxJ3rqpqTD7Kq14cXGcuR2OXwaVz5RGruXFg==",
619
+ "version": "10.2.1",
620
+ "resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-10.2.1.tgz",
621
+ "integrity": "sha512-2ggpibmF0IJLUFOmTo4K9MlcAQLEkNevMJ3wahJHVP/qg28hX73V+tD3tLY6vwynpPNaUCXClqS+Q5gv+5UicQ==",
632
622
  "license": "Apache-2.0",
633
623
  "engines": {
634
624
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
@@ -1463,9 +1453,9 @@
1463
1453
  }
1464
1454
  },
1465
1455
  "node_modules/es-object-atoms": {
1466
- "version": "1.1.1",
1467
- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
1468
- "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
1456
+ "version": "1.1.2",
1457
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
1458
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
1469
1459
  "license": "MIT",
1470
1460
  "dependencies": {
1471
1461
  "es-errors": "^1.3.0"
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "7.5.1",
10
+ "version": "7.5.2",
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": "^15.0.0",
60
60
  "appium-android-driver": "^13.2.3",
61
- "appium-uiautomator2-server": "^10.1.0",
61
+ "appium-uiautomator2-server": "^10.2.1",
62
62
  "asyncbox": "^6.0.1",
63
63
  "axios": "^1.16.0",
64
64
  "css-selector-parser": "^3.0.0",