appium-uiautomator2-driver 4.1.2 → 4.1.3

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.
@@ -22,19 +22,6 @@ export async function mobileInstallMultipleApks(apks, options) {
22
22
  await this.adb.installMultipleApks(configuredApks, options);
23
23
  }
24
24
 
25
- /**
26
- * Puts the app to background and waits the given number of seconds then restores the app
27
- * if necessary. The call is blocking.
28
- *
29
- * @this {AndroidUiautomator2Driver}
30
- * @param {number} [seconds=-1] The amount of seconds to wait between putting the app to background and restoring it.
31
- * Any negative value means to not restore the app after putting it to background.
32
- * @returns {Promise<void>}
33
- */
34
- export async function mobileBackgroundApp(seconds = -1) {
35
- await this.background(seconds);
36
- }
37
-
38
25
  /**
39
26
  * @typedef {import('../driver').AndroidUiautomator2Driver} AndroidUiautomator2Driver
40
27
  */
package/lib/driver.ts CHANGED
@@ -53,7 +53,6 @@ import {
53
53
  } from './commands/alert';
54
54
  import {
55
55
  mobileInstallMultipleApks,
56
- mobileBackgroundApp,
57
56
  } from './commands/app-management';
58
57
  import {
59
58
  mobileGetBatteryInfo,
@@ -1010,7 +1009,6 @@ class AndroidUiautomator2Driver
1010
1009
  postDismissAlert = postDismissAlert;
1011
1010
 
1012
1011
  mobileInstallMultipleApks = mobileInstallMultipleApks;
1013
- mobileBackgroundApp = mobileBackgroundApp;
1014
1012
 
1015
1013
  mobileGetBatteryInfo = mobileGetBatteryInfo;
1016
1014
 
@@ -214,13 +214,6 @@ export const executeMethodMap = {
214
214
  }
215
215
  },
216
216
 
217
- 'mobile: backgroundApp': {
218
- command: 'mobileBackgroundApp',
219
- params: {
220
- optional: ['seconds'],
221
- }
222
- },
223
-
224
217
  'mobile: pressKey': {
225
218
  command: 'mobilePressKey',
226
219
  params: {
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "appium-uiautomator2-driver",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-uiautomator2-driver",
9
- "version": "4.1.2",
9
+ "version": "4.1.3",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "appium-adb": "^12.12.0",
13
- "appium-android-driver": "^10.2.2",
13
+ "appium-android-driver": "^10.2.3",
14
14
  "appium-uiautomator2-server": "^7.2.0",
15
15
  "asyncbox": "^3.0.0",
16
16
  "axios": "^1.6.5",
@@ -629,9 +629,9 @@
629
629
  }
630
630
  },
631
631
  "node_modules/appium-android-driver": {
632
- "version": "10.2.2",
633
- "resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-10.2.2.tgz",
634
- "integrity": "sha512-NgjmxedfbUWlwO7AFK00vKedEOuXpfaxXO6KYDVhtL1gIkiLGhTWt3YByJGT6yEpdaKJ3/21ieQR2B/LkcKsZw==",
632
+ "version": "10.2.3",
633
+ "resolved": "https://registry.npmjs.org/appium-android-driver/-/appium-android-driver-10.2.3.tgz",
634
+ "integrity": "sha512-urP4jqS+rl8oU5zAyCYCyUJ+1Hi58rLB4gvfXIS2MCqe7AzLC3eoAoPgNWc0/A+lCBja5INk8SCpphBSoC+FXg==",
635
635
  "license": "Apache-2.0",
636
636
  "dependencies": {
637
637
  "@appium/support": "^6.0.0",
@@ -1420,9 +1420,9 @@
1420
1420
  }
1421
1421
  },
1422
1422
  "node_modules/css-selector-parser": {
1423
- "version": "3.0.5",
1424
- "resolved": "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-3.0.5.tgz",
1425
- "integrity": "sha512-3itoDFbKUNx1eKmVpYMFyqKX04Ww9osZ+dLgrk6GEv6KMVeXUhUnp4I5X+evw+u3ZxVU6RFXSSRxlTeMh8bA+g==",
1423
+ "version": "3.1.1",
1424
+ "resolved": "https://registry.npmjs.org/css-selector-parser/-/css-selector-parser-3.1.1.tgz",
1425
+ "integrity": "sha512-Y+DuvJ7JAjpL1f4DeILe5sXCC3kRXMl0DxM4lAWbS8/jEZ29o3V0L5TL6zIifj4Csmj6c+jiF2ENjida2OVOGA==",
1426
1426
  "funding": [
1427
1427
  {
1428
1428
  "type": "github",
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "automated testing",
8
8
  "android"
9
9
  ],
10
- "version": "4.1.2",
10
+ "version": "4.1.3",
11
11
  "bugs": {
12
12
  "url": "https://github.com/appium/appium-uiautomator2-driver/issues"
13
13
  },
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "appium-adb": "^12.12.0",
60
- "appium-android-driver": "^10.2.2",
60
+ "appium-android-driver": "^10.2.3",
61
61
  "appium-uiautomator2-server": "^7.2.0",
62
62
  "asyncbox": "^3.0.0",
63
63
  "axios": "^1.6.5",