appium-android-driver 15.1.6 → 15.1.8
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
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [15.1.8](https://github.com/appium/appium-android/compare/appium-android-driver@15.1.7...appium-android-driver@15.1.8) (2026-11-07)
|
|
7
|
+
|
|
8
|
+
### Code Refactoring
|
|
9
|
+
|
|
10
|
+
* use ConditionUnmetError instead of message matching ([#89](https://github.com/appium/appium-android/issues/89)) ([0270c94](https://github.com/appium/appium-android/commit/0270c944c04cec9452eecb39ff1dd8bbde13d6b1))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [15.1.7](https://github.com/appium/appium-android/compare/appium-android-driver@15.1.6...appium-android-driver@15.1.7) (2026-11-07)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package appium-android-driver
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
## [15.1.6](https://github.com/appium/appium-android/compare/appium-android-driver@15.1.5...appium-android-driver@15.1.6) (2026-11-06)
|
|
7
22
|
|
|
8
23
|
### Bug Fixes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../lib/commands/find.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../lib/commands/find.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAI3C,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EAAC,aAAa,EAA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
3
|
+
import { ConditionUnmetError } from 'asyncbox';
|
|
4
|
+
// Message fallback for asyncbox < 6.6.0 (no `ConditionUnmetError`)
|
|
5
|
+
const LEGACY_CONDITION_UNMET_PATTERN = /Condition unmet/;
|
|
3
6
|
export async function findElOrEls(strategy, selector, mult, context = '') {
|
|
4
7
|
if (!selector) {
|
|
5
8
|
throw new errors.InvalidSelectorError('Must provide a selector when finding elements');
|
|
@@ -38,7 +41,7 @@ export async function findElOrEls(strategy, selector, mult, context = '') {
|
|
|
38
41
|
}
|
|
39
42
|
catch (e) {
|
|
40
43
|
const err = e;
|
|
41
|
-
if (err.message
|
|
44
|
+
if (err instanceof ConditionUnmetError || LEGACY_CONDITION_UNMET_PATTERN.test(err.message ?? '')) {
|
|
42
45
|
// only get here if we are looking for multiple elements
|
|
43
46
|
// condition was not met setting res to empty array
|
|
44
47
|
element = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../lib/commands/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../lib/commands/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAM7C,mEAAmE;AACnE,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;AAkCzD,MAAM,CAAC,KAAK,UAAU,WAAW,CAE/B,QAAgB,EAChB,QAAgB,EAChB,IAAa,EACb,OAAO,GAAG,EAAE;IAEZ,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,MAAM,CAAC,oBAAoB,CAAC,+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O,OAAoB,CAAC;IAC9B,CAAC;IACD,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,MAAM,CAAC,kBAAkB,EAAE,CAAC;IACxC,CAAC;IACD,OAAO,OAAkB,CAAC;AAC5B,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAsB,MAAuB;IACnF,KAAK,MAAM,CAAC;IACZ,MAAM,IAAI,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;AAC1D,CAAC"}
|
package/lib/commands/find.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import {util} from '@appium/support';
|
|
2
2
|
import type {Element} from '@appium/types';
|
|
3
3
|
import {errors, isErrorType} from 'appium/driver.js';
|
|
4
|
+
import {ConditionUnmetError} from 'asyncbox';
|
|
4
5
|
|
|
5
6
|
import type {AndroidDriverConstraints} from '../constraints.js';
|
|
6
7
|
import type {AndroidDriver} from '../driver.js';
|
|
7
8
|
import type {FindElementOpts} from './types.js';
|
|
8
9
|
|
|
10
|
+
// Message fallback for asyncbox < 6.6.0 (no `ConditionUnmetError`)
|
|
11
|
+
const LEGACY_CONDITION_UNMET_PATTERN = /Condition unmet/;
|
|
12
|
+
|
|
9
13
|
declare module '../driver.js' {
|
|
10
14
|
interface AndroidDriver<C extends AndroidDriverConstraints> {
|
|
11
15
|
findElOrEls(strategy: string, selector: string, mult: true, context?: string): Promise<Element[]>;
|
|
@@ -85,7 +89,7 @@ export async function findElOrEls(
|
|
|
85
89
|
await this.implicitWaitForCondition(doFind);
|
|
86
90
|
} catch (e) {
|
|
87
91
|
const err = e as Error;
|
|
88
|
-
if (err.message
|
|
92
|
+
if (err instanceof ConditionUnmetError || LEGACY_CONDITION_UNMET_PATTERN.test(err.message ?? '')) {
|
|
89
93
|
// only get here if we are looking for multiple elements
|
|
90
94
|
// condition was not met setting res to empty array
|
|
91
95
|
element = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-android-driver",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.8",
|
|
4
4
|
"description": "Android UiAutomator and Chrome support for Appium",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@appium/support": "^8.0.0-beta.3",
|
|
53
|
-
"appium-adb": "^16.
|
|
54
|
-
"appium-chromedriver": "^9.2.
|
|
55
|
-
"asyncbox": "^6.
|
|
53
|
+
"appium-adb": "^16.4.1",
|
|
54
|
+
"appium-chromedriver": "^9.2.3",
|
|
55
|
+
"asyncbox": "^6.6.0",
|
|
56
56
|
"axios": "^1.18.0",
|
|
57
57
|
"dayjs": "^1.11.21",
|
|
58
|
-
"io.appium.settings": "^8.5.
|
|
58
|
+
"io.appium.settings": "^8.5.5",
|
|
59
59
|
"lru-cache": "^11.1.0",
|
|
60
60
|
"portscanner": "^2.2.0",
|
|
61
61
|
"semver": "^7.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0",
|
|
80
80
|
"npm": ">=10"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "262fceb165c8e37a5262a6698fb77b8a51374bd0"
|
|
83
83
|
}
|