appium-android-driver 4.54.0 → 5.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/build/index.js +6 -4
- package/build/lib/android-helpers.js +12 -9
- package/build/lib/bootstrap.js +7 -7
- package/build/lib/commands/actions.js +13 -13
- package/build/lib/commands/alert.js +7 -7
- package/build/lib/commands/app-management.js +5 -5
- package/build/lib/commands/context.js +10 -8
- package/build/lib/commands/element.js +5 -5
- package/build/lib/commands/execute.js +5 -5
- package/build/lib/commands/file-actions.js +12 -12
- package/build/lib/commands/find.js +6 -6
- package/build/lib/commands/general.js +8 -8
- package/build/lib/commands/ime.js +4 -4
- package/build/lib/commands/intent.js +7 -7
- package/build/lib/commands/log.js +6 -6
- package/build/lib/commands/network.js +4 -4
- package/build/lib/commands/performance.js +1 -1
- package/build/lib/commands/recordscreen.js +15 -15
- package/build/lib/commands/shell.js +3 -3
- package/build/lib/commands/streamscreen.js +7 -7
- package/build/lib/commands/touch.js +8 -8
- package/build/lib/desired-caps.js +1 -1
- package/build/lib/driver.js +12 -12
- package/build/lib/logger.js +3 -3
- package/build/lib/server.js +4 -4
- package/build/lib/uiautomator.js +3 -3
- package/build/lib/unlock-helpers.js +8 -8
- package/build/lib/webview-helpers.js +7 -7
- package/lib/android-helpers.js +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/commands/actions.js +1 -1
- package/lib/commands/alert.js +1 -1
- package/lib/commands/app-management.js +2 -2
- package/lib/commands/context.js +2 -2
- package/lib/commands/element.js +1 -1
- package/lib/commands/execute.js +1 -1
- package/lib/commands/file-actions.js +1 -1
- package/lib/commands/find.js +2 -2
- package/lib/commands/general.js +1 -1
- package/lib/commands/ime.js +1 -1
- package/lib/commands/intent.js +1 -1
- package/lib/commands/log.js +1 -1
- package/lib/commands/network.js +1 -1
- package/lib/commands/recordscreen.js +1 -1
- package/lib/commands/shell.js +1 -1
- package/lib/commands/streamscreen.js +1 -1
- package/lib/commands/touch.js +2 -2
- package/lib/driver.js +2 -2
- package/lib/logger.js +1 -1
- package/lib/server.js +1 -1
- package/lib/uiautomator.js +1 -1
- package/lib/unlock-helpers.js +1 -1
- package/lib/webview-helpers.js +1 -1
- package/package.json +16 -10
package/lib/commands/find.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import { errors, isErrorType } from 'appium
|
|
2
|
+
import { errors, isErrorType } from '@appium/base-driver';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
let helpers = {}, extensions = {};
|
|
@@ -44,7 +44,7 @@ helpers.findElOrEls = async function findElOrEls (strategy, selector, mult, cont
|
|
|
44
44
|
|
|
45
45
|
// now we have to inspect the error to determine if it is a no such
|
|
46
46
|
// element error, based on the shape of the error object from
|
|
47
|
-
// appium
|
|
47
|
+
// @appium/base-driver
|
|
48
48
|
if (isErrorType(err, errors.NoSuchElementError)) {
|
|
49
49
|
// we are fine with this, just indicate a retry
|
|
50
50
|
return false;
|
package/lib/commands/general.js
CHANGED
package/lib/commands/ime.js
CHANGED
package/lib/commands/intent.js
CHANGED
package/lib/commands/log.js
CHANGED
|
@@ -2,7 +2,7 @@ import log from '../logger';
|
|
|
2
2
|
import os from 'os';
|
|
3
3
|
import _ from 'lodash';
|
|
4
4
|
import WebSocket from 'ws';
|
|
5
|
-
import { DEFAULT_WS_PATHNAME_PREFIX, BaseDriver } from 'appium
|
|
5
|
+
import { DEFAULT_WS_PATHNAME_PREFIX, BaseDriver } from '@appium/base-driver';
|
|
6
6
|
|
|
7
7
|
const GET_SERVER_LOGS_FEATURE = 'get_server_logs';
|
|
8
8
|
|
package/lib/commands/network.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { waitForCondition } from 'asyncbox';
|
|
3
|
-
import { util, fs, net, tempDir, system, timing } from 'appium
|
|
3
|
+
import { util, fs, net, tempDir, system, timing } from '@appium/support';
|
|
4
4
|
import log from '../logger';
|
|
5
5
|
import { exec } from 'teen_process';
|
|
6
6
|
import path from 'path';
|
package/lib/commands/shell.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import { fs, system, logger, util } from 'appium
|
|
2
|
+
import { fs, system, logger, util } from '@appium/support';
|
|
3
3
|
import log from '../logger';
|
|
4
4
|
import { exec, SubProcess } from 'teen_process';
|
|
5
5
|
import { checkPortStatus } from 'portscanner';
|
package/lib/commands/touch.js
CHANGED
|
@@ -2,9 +2,9 @@ import log from '../logger';
|
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import androidHelpers from '../android-helpers';
|
|
4
4
|
import B from 'bluebird';
|
|
5
|
-
import { errors, isErrorType } from 'appium
|
|
5
|
+
import { errors, isErrorType } from '@appium/base-driver';
|
|
6
6
|
import { asyncmap } from 'asyncbox';
|
|
7
|
-
import { util } from 'appium
|
|
7
|
+
import { util } from '@appium/support';
|
|
8
8
|
|
|
9
9
|
let commands = {}, helpers = {}, extensions = {};
|
|
10
10
|
|
package/lib/driver.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseDriver, DeviceSettings } from 'appium
|
|
1
|
+
import { BaseDriver, DeviceSettings } from '@appium/base-driver';
|
|
2
2
|
import desiredConstraints from './desired-caps';
|
|
3
3
|
import commands from './commands/index';
|
|
4
4
|
import {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import log from './logger';
|
|
9
9
|
import _ from 'lodash';
|
|
10
10
|
import { DEFAULT_ADB_PORT } from 'appium-adb';
|
|
11
|
-
import { fs, tempDir, util } from 'appium
|
|
11
|
+
import { fs, tempDir, util } from '@appium/support';
|
|
12
12
|
import { retryInterval } from 'asyncbox';
|
|
13
13
|
import { SharedPrefsBuilder } from 'shared-preferences-builder';
|
|
14
14
|
import B from 'bluebird';
|
package/lib/logger.js
CHANGED
package/lib/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import log from './logger';
|
|
2
|
-
import { server as baseServer, routeConfiguringFunction as makeRouter } from 'appium
|
|
2
|
+
import { server as baseServer, routeConfiguringFunction as makeRouter } from '@appium/base-driver';
|
|
3
3
|
import AndroidDriver from './driver';
|
|
4
4
|
|
|
5
5
|
async function startServer (port, host) {
|
package/lib/uiautomator.js
CHANGED
package/lib/unlock-helpers.js
CHANGED
package/lib/webview-helpers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import logger from './logger';
|
|
3
3
|
import axios from 'axios';
|
|
4
|
-
import { util } from 'appium
|
|
4
|
+
import { util } from '@appium/support';
|
|
5
5
|
import { findAPortNotInUse } from 'portscanner';
|
|
6
6
|
import LRU from 'lru-cache';
|
|
7
7
|
import B from 'bluebird';
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"mobile",
|
|
10
10
|
"mobile testing"
|
|
11
11
|
],
|
|
12
|
-
"version": "
|
|
12
|
+
"version": "5.0.0",
|
|
13
13
|
"author": "appium",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"repository": {
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
"bootstrap/bin/AppiumBootstrap.jar"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@appium/base-driver": "^8.0.0",
|
|
39
|
+
"@appium/support": "^2.55.3",
|
|
38
40
|
"@babel/runtime": "^7.0.0",
|
|
39
|
-
"appium-adb": "^
|
|
40
|
-
"appium-
|
|
41
|
-
"appium-chromedriver": "^4.13.0",
|
|
42
|
-
"appium-support": "^2.47.1",
|
|
41
|
+
"appium-adb": "^9.0.0",
|
|
42
|
+
"appium-chromedriver": "^5.0.1",
|
|
43
43
|
"asyncbox": "^2.8.0",
|
|
44
44
|
"axios": "^0.x",
|
|
45
45
|
"bluebird": "^3.4.7",
|
|
46
|
-
"io.appium.settings": "^
|
|
46
|
+
"io.appium.settings": "^4.0.0",
|
|
47
47
|
"jimp": "^0.x",
|
|
48
48
|
"lodash": "^4.17.4",
|
|
49
49
|
"lru-cache": "^6.0.0",
|
|
@@ -77,13 +77,19 @@
|
|
|
77
77
|
"precommit-test"
|
|
78
78
|
],
|
|
79
79
|
"devDependencies": {
|
|
80
|
+
"@appium/gulp-plugins": "^6.0.0",
|
|
81
|
+
"@appium/eslint-config-appium": "^5.0.0",
|
|
82
|
+
"@appium/test-support": "^1.0.0",
|
|
83
|
+
"@babel/core": "^7.16.0",
|
|
84
|
+
"@babel/eslint-parser": "^7.16.3",
|
|
80
85
|
"@xmldom/xmldom": "^0.x",
|
|
81
|
-
"android-apidemos": "^
|
|
82
|
-
"appium-gulp-plugins": "^5.4.0",
|
|
83
|
-
"appium-test-support": "^1.0.0",
|
|
86
|
+
"android-apidemos": "^4.0.0",
|
|
84
87
|
"chai": "^4.1.2",
|
|
85
88
|
"chai-as-promised": "^7.1.1",
|
|
86
|
-
"eslint
|
|
89
|
+
"eslint": "^7.32.0",
|
|
90
|
+
"eslint-plugin-import": "^2.25.3",
|
|
91
|
+
"eslint-plugin-mocha": "^9.0.0",
|
|
92
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
87
93
|
"gulp": "^4.0.0",
|
|
88
94
|
"mocha": "^9.0.0",
|
|
89
95
|
"mock-fs": "^5.0.0",
|