appium-uiautomator2-driver 5.0.6 → 6.0.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 +16 -0
- package/README.md +3 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +8 -10
- package/build/lib/driver.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/driver.ts +7 -12
- package/npm-shrinkwrap.json +33 -33
- package/package.json +6 -6
package/lib/driver.ts
CHANGED
|
@@ -152,7 +152,7 @@ const DEVICE_PORT = 6790;
|
|
|
152
152
|
// We will forward one of the ports above on the system to this port on the
|
|
153
153
|
// device.
|
|
154
154
|
const MJPEG_SERVER_DEVICE_PORT = 7810;
|
|
155
|
-
|
|
155
|
+
const MIN_SUPPORTED_API_LEVEL = 26;
|
|
156
156
|
const LOCALHOST_IP4 = '127.0.0.1';
|
|
157
157
|
|
|
158
158
|
// NO_PROXY contains the paths that we never want to proxy to UiAutomator2 server.
|
|
@@ -370,12 +370,10 @@ class AndroidUiautomator2Driver
|
|
|
370
370
|
this.log.info(`We're going to run a Chrome-based session`);
|
|
371
371
|
const {pkg, activity: defaultActivity} = utils.getChromePkg(this.opts.browserName!);
|
|
372
372
|
let activity: string = defaultActivity;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
this.log.warn(`Using the default ${pkg} activity ${activity}. Original error: ${e.message}`);
|
|
378
|
-
}
|
|
373
|
+
try {
|
|
374
|
+
activity = await this.adb.resolveLaunchableActivity(pkg);
|
|
375
|
+
} catch (e) {
|
|
376
|
+
this.log.warn(`Using the default ${pkg} activity ${activity}. Original error: ${e.message}`);
|
|
379
377
|
}
|
|
380
378
|
this.opts.appPackage = this.caps.appPackage = pkg;
|
|
381
379
|
this.opts.appActivity = this.caps.appActivity = activity;
|
|
@@ -523,11 +521,8 @@ class AndroidUiautomator2Driver
|
|
|
523
521
|
|
|
524
522
|
async performSessionPreExecSetup(): Promise<StringRecord|undefined> {
|
|
525
523
|
const apiLevel = await this.adb.getApiLevel();
|
|
526
|
-
if (apiLevel <
|
|
527
|
-
throw this.log.errorWithException(
|
|
528
|
-
'UIAutomator2 is only supported since Android 5.0 (Lollipop). ' +
|
|
529
|
-
'You could still use other supported backends in order to automate older Android versions.'
|
|
530
|
-
);
|
|
524
|
+
if (apiLevel < MIN_SUPPORTED_API_LEVEL) {
|
|
525
|
+
throw this.log.errorWithException('UIAutomator2 only supports Android 8.0 (Oreo) and above');
|
|
531
526
|
}
|
|
532
527
|
|
|
533
528
|
const preflightPromises: Promise<any>[] = [];
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-uiautomator2-driver",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-uiautomator2-driver",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "6.0.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"appium-adb": "^
|
|
13
|
-
"appium-android-driver": "^11.0.
|
|
14
|
-
"appium-uiautomator2-server": "^
|
|
12
|
+
"appium-adb": "^14.0.0",
|
|
13
|
+
"appium-android-driver": "^11.0.9",
|
|
14
|
+
"appium-uiautomator2-server": "^9.0.0",
|
|
15
15
|
"asyncbox": "^3.0.0",
|
|
16
|
-
"axios": "^1.
|
|
16
|
+
"axios": "^1.12.2",
|
|
17
17
|
"bluebird": "^3.5.1",
|
|
18
18
|
"css-selector-parser": "^3.0.0",
|
|
19
|
-
"io.appium.settings": "^6.0.
|
|
19
|
+
"io.appium.settings": "^6.0.8",
|
|
20
20
|
"lodash": "^4.17.4",
|
|
21
21
|
"portscanner": "^2.2.0",
|
|
22
22
|
"source-map-support": "^0.x",
|
|
@@ -282,9 +282,9 @@
|
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
"node_modules/@babel/helper-validator-identifier": {
|
|
285
|
-
"version": "7.
|
|
286
|
-
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.
|
|
287
|
-
"integrity": "sha512-
|
|
285
|
+
"version": "7.28.5",
|
|
286
|
+
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
|
|
287
|
+
"integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
|
|
288
288
|
"license": "MIT",
|
|
289
289
|
"engines": {
|
|
290
290
|
"node": ">=6.9.0"
|
|
@@ -460,16 +460,16 @@
|
|
|
460
460
|
}
|
|
461
461
|
},
|
|
462
462
|
"node_modules/appium-adb": {
|
|
463
|
-
"version": "
|
|
464
|
-
"resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-
|
|
465
|
-
"integrity": "sha512-
|
|
463
|
+
"version": "14.0.0",
|
|
464
|
+
"resolved": "https://registry.npmjs.org/appium-adb/-/appium-adb-14.0.0.tgz",
|
|
465
|
+
"integrity": "sha512-4pp6/kuCFYIC+UsMx0V5glNqSTcRVWDqaOzTT67ArI3//WVfj6L4n7AyPovdXU49IOAhHlZ+2U1+RVMjMJfjtw==",
|
|
466
466
|
"license": "Apache-2.0",
|
|
467
467
|
"dependencies": {
|
|
468
468
|
"@appium/support": "^7.0.0-rc.1",
|
|
469
469
|
"async-lock": "^1.0.0",
|
|
470
470
|
"asyncbox": "^3.0.0",
|
|
471
471
|
"bluebird": "^3.4.7",
|
|
472
|
-
"ini": "^
|
|
472
|
+
"ini": "^6.0.0",
|
|
473
473
|
"lodash": "^4.0.0",
|
|
474
474
|
"lru-cache": "^11.1.0",
|
|
475
475
|
"semver": "^7.0.0",
|
|
@@ -482,15 +482,15 @@
|
|
|
482
482
|
}
|
|
483
483
|
},
|
|
484
484
|
"node_modules/appium-android-driver": {
|
|
485
|
-
"version": "11.0.
|
|
486
|
-
"resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-11.0.
|
|
487
|
-
"integrity": "sha512-
|
|
485
|
+
"version": "11.0.10",
|
|
486
|
+
"resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-11.0.10.tgz",
|
|
487
|
+
"integrity": "sha512-uAvmsuMmRRLvWsbLKyUUJML8fiXdVtOXzM0rPn0r13nhZ3TJkDqk6PyP01PjYPyPSfA+G5I5rF/cDOK5QUWJkw==",
|
|
488
488
|
"license": "Apache-2.0",
|
|
489
489
|
"dependencies": {
|
|
490
490
|
"@appium/support": "^7.0.0-rc.1",
|
|
491
491
|
"@colors/colors": "^1.6.0",
|
|
492
|
-
"appium-adb": "^
|
|
493
|
-
"appium-chromedriver": "^8.0.
|
|
492
|
+
"appium-adb": "^14.0.0",
|
|
493
|
+
"appium-chromedriver": "^8.0.16",
|
|
494
494
|
"asyncbox": "^3.0.0",
|
|
495
495
|
"axios": "^1.x",
|
|
496
496
|
"bluebird": "^3.4.7",
|
|
@@ -514,15 +514,15 @@
|
|
|
514
514
|
}
|
|
515
515
|
},
|
|
516
516
|
"node_modules/appium-chromedriver": {
|
|
517
|
-
"version": "8.0.
|
|
518
|
-
"resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-8.0.
|
|
519
|
-
"integrity": "sha512-
|
|
517
|
+
"version": "8.0.16",
|
|
518
|
+
"resolved": "https://registry.npmjs.org/appium-chromedriver/-/appium-chromedriver-8.0.16.tgz",
|
|
519
|
+
"integrity": "sha512-btCQzwSVBEZ6we7MUvXAWPaP4OsOb9DF7tApzdyoWhsRzXYgGySz92azH1hROfKy4MqLDp8b3NUnez1+gS7lMw==",
|
|
520
520
|
"license": "Apache-2.0",
|
|
521
521
|
"dependencies": {
|
|
522
522
|
"@appium/base-driver": "^10.0.0-rc.2",
|
|
523
523
|
"@appium/support": "^7.0.0-rc.1",
|
|
524
524
|
"@xmldom/xmldom": "^0.x",
|
|
525
|
-
"appium-adb": "^
|
|
525
|
+
"appium-adb": "^14.0.0",
|
|
526
526
|
"asyncbox": "^3.0.0",
|
|
527
527
|
"axios": "^1.6.5",
|
|
528
528
|
"bluebird": "^3.5.1",
|
|
@@ -539,9 +539,9 @@
|
|
|
539
539
|
}
|
|
540
540
|
},
|
|
541
541
|
"node_modules/appium-uiautomator2-server": {
|
|
542
|
-
"version": "
|
|
543
|
-
"resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-
|
|
544
|
-
"integrity": "sha512-
|
|
542
|
+
"version": "9.0.1",
|
|
543
|
+
"resolved": "https://registry.npmjs.org/appium-uiautomator2-server/-/appium-uiautomator2-server-9.0.1.tgz",
|
|
544
|
+
"integrity": "sha512-0K37uGoLL1ShKIfTLk3oD2c8PpbGiHW0xmhyyJlVRH5CUNTAXNdrUCZmNWYCiAJgV6c6wu2XsTvgdafBX6U3Xg==",
|
|
545
545
|
"license": "Apache-2.0",
|
|
546
546
|
"engines": {
|
|
547
547
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -1951,18 +1951,18 @@
|
|
|
1951
1951
|
"license": "ISC"
|
|
1952
1952
|
},
|
|
1953
1953
|
"node_modules/ini": {
|
|
1954
|
-
"version": "
|
|
1955
|
-
"resolved": "https://registry.npmjs.org/ini/-/ini-
|
|
1956
|
-
"integrity": "sha512
|
|
1954
|
+
"version": "6.0.0",
|
|
1955
|
+
"resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz",
|
|
1956
|
+
"integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==",
|
|
1957
1957
|
"license": "ISC",
|
|
1958
1958
|
"engines": {
|
|
1959
|
-
"node": "^
|
|
1959
|
+
"node": "^20.17.0 || >=22.9.0"
|
|
1960
1960
|
}
|
|
1961
1961
|
},
|
|
1962
1962
|
"node_modules/io.appium.settings": {
|
|
1963
|
-
"version": "6.0.
|
|
1964
|
-
"resolved": "https://registry.npmjs.org/io.appium.settings/-/io.appium.settings-6.0.
|
|
1965
|
-
"integrity": "sha512-
|
|
1963
|
+
"version": "6.0.8",
|
|
1964
|
+
"resolved": "https://registry.npmjs.org/io.appium.settings/-/io.appium.settings-6.0.8.tgz",
|
|
1965
|
+
"integrity": "sha512-iEUwPuzHonKxr1Pyp2WGCitrVMRPRfgxM35/BrjeFWtEmLOMLB0PxEBHTcREn406aM7+LMoneYKa4OGnFZTJ5Q==",
|
|
1966
1966
|
"license": "Apache-2.0",
|
|
1967
1967
|
"dependencies": {
|
|
1968
1968
|
"@appium/logger": "^2.0.0-rc.1",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"automated testing",
|
|
8
8
|
"android"
|
|
9
9
|
],
|
|
10
|
-
"version": "
|
|
10
|
+
"version": "6.0.0",
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/appium/appium-uiautomator2-driver/issues"
|
|
13
13
|
},
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"singleQuote": true
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"appium-adb": "^
|
|
60
|
-
"appium-android-driver": "^11.0.
|
|
61
|
-
"appium-uiautomator2-server": "^
|
|
59
|
+
"appium-adb": "^14.0.0",
|
|
60
|
+
"appium-android-driver": "^11.0.9",
|
|
61
|
+
"appium-uiautomator2-server": "^9.0.0",
|
|
62
62
|
"asyncbox": "^3.0.0",
|
|
63
|
-
"axios": "^1.
|
|
63
|
+
"axios": "^1.12.2",
|
|
64
64
|
"bluebird": "^3.5.1",
|
|
65
65
|
"css-selector-parser": "^3.0.0",
|
|
66
|
-
"io.appium.settings": "^6.0.
|
|
66
|
+
"io.appium.settings": "^6.0.8",
|
|
67
67
|
"lodash": "^4.17.4",
|
|
68
68
|
"portscanner": "^2.2.0",
|
|
69
69
|
"source-map-support": "^0.x",
|