appium-chromedriver 8.0.31 → 8.2.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 +12 -0
- package/build/lib/chromedriver.d.ts +88 -117
- package/build/lib/chromedriver.d.ts.map +1 -1
- package/build/lib/chromedriver.js +273 -284
- package/build/lib/chromedriver.js.map +1 -1
- package/build/lib/constants.d.ts +18 -18
- package/build/lib/constants.d.ts.map +1 -1
- package/build/lib/constants.js.map +1 -1
- package/build/lib/protocol-helpers.d.ts +14 -13
- package/build/lib/protocol-helpers.d.ts.map +1 -1
- package/build/lib/protocol-helpers.js +13 -12
- package/build/lib/protocol-helpers.js.map +1 -1
- package/build/lib/storage-client/chromelabs.d.ts +15 -15
- package/build/lib/storage-client/chromelabs.d.ts.map +1 -1
- package/build/lib/storage-client/chromelabs.js +15 -19
- package/build/lib/storage-client/chromelabs.js.map +1 -1
- package/build/lib/storage-client/googleapis.d.ts +14 -16
- package/build/lib/storage-client/googleapis.d.ts.map +1 -1
- package/build/lib/storage-client/googleapis.js +25 -41
- package/build/lib/storage-client/googleapis.js.map +1 -1
- package/build/lib/storage-client/storage-client.d.ts +41 -56
- package/build/lib/storage-client/storage-client.d.ts.map +1 -1
- package/build/lib/storage-client/storage-client.js +118 -137
- package/build/lib/storage-client/storage-client.js.map +1 -1
- package/build/lib/utils.d.ts +55 -41
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +51 -54
- package/build/lib/utils.js.map +1 -1
- package/lib/{chromedriver.js → chromedriver.ts} +344 -333
- package/lib/{constants.js → constants.ts} +5 -4
- package/lib/protocol-helpers.ts +44 -0
- package/lib/storage-client/{chromelabs.js → chromelabs.ts} +54 -26
- package/lib/storage-client/{googleapis.js → googleapis.ts} +55 -54
- package/lib/storage-client/{storage-client.js → storage-client.ts} +188 -182
- package/lib/utils.ts +185 -0
- package/package.json +2 -1
- package/lib/protocol-helpers.js +0 -44
- package/lib/utils.js +0 -189
package/build/lib/utils.d.ts
CHANGED
|
@@ -1,56 +1,70 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import { OS, CPU } from './constants';
|
|
3
|
+
import type { ADB } from 'appium-adb';
|
|
4
|
+
import type { ChromedriverVersionMapping, OSInfo } from './types';
|
|
5
|
+
export declare const CHROMEDRIVER_CHROME_MAPPING: ChromedriverVersionMapping;
|
|
6
|
+
export declare const CD_BASE_DIR: string;
|
|
1
7
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param
|
|
4
|
-
* @
|
|
5
|
-
* @
|
|
8
|
+
* Gets the most recent Chromedriver version from the mapping.
|
|
9
|
+
* @param mapping - The Chromedriver version mapping (defaults to the static mapping).
|
|
10
|
+
* @returns The most recent version string.
|
|
11
|
+
* @throws {Error} If the mapping is empty.
|
|
6
12
|
*/
|
|
7
|
-
export function
|
|
8
|
-
export
|
|
13
|
+
export declare function getMostRecentChromedriver(mapping?: ChromedriverVersionMapping): string;
|
|
14
|
+
export declare const CD_VER: string;
|
|
9
15
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @param
|
|
12
|
-
* @
|
|
16
|
+
* Gets the Chrome version for a given bundle ID using ADB.
|
|
17
|
+
* @param adb - The ADB instance to use.
|
|
18
|
+
* @param bundleId - The bundle ID of the Chrome/WebView app.
|
|
19
|
+
* @returns The version name string, or undefined if not found.
|
|
13
20
|
*/
|
|
14
|
-
export function
|
|
21
|
+
export declare function getChromeVersion(adb: ADB, bundleId: string): Promise<string | undefined>;
|
|
15
22
|
/**
|
|
16
|
-
*
|
|
23
|
+
* Gets the directory path for Chromedriver executables for a given OS.
|
|
24
|
+
* @param osName - The OS name (defaults to the current OS).
|
|
25
|
+
* @returns The full path to the Chromedriver directory.
|
|
17
26
|
*/
|
|
18
|
-
export
|
|
19
|
-
export const CD_BASE_DIR: string;
|
|
20
|
-
export const CD_VER: string;
|
|
21
|
-
export const CHROMEDRIVER_CHROME_MAPPING: any;
|
|
27
|
+
export declare function getChromedriverDir(osName?: string): string;
|
|
22
28
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
25
|
-
* @returns
|
|
29
|
+
* Gets the path to the Chromedriver binary for a given OS.
|
|
30
|
+
* @param osName - The OS name (defaults to the current OS).
|
|
31
|
+
* @returns The full path to the Chromedriver binary.
|
|
26
32
|
*/
|
|
27
|
-
export function
|
|
33
|
+
export declare function getChromedriverBinaryPath(osName?: string): Promise<string>;
|
|
28
34
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @param
|
|
33
|
-
* @returns
|
|
35
|
+
* Retrieves data from a URL using axios.
|
|
36
|
+
* @param url - The URL to fetch from.
|
|
37
|
+
* @param headers - Optional HTTP headers.
|
|
38
|
+
* @param opts - Optional configuration (timeout, responseType).
|
|
39
|
+
* @returns The response data.
|
|
34
40
|
*/
|
|
35
|
-
export function retrieveData(url: string, headers
|
|
36
|
-
export const getOsInfo: (() => Promise<import("./types").OSInfo>) & _.MemoizedFunction;
|
|
37
|
-
export const getCpuType: (() => string) & _.MemoizedFunction;
|
|
38
|
-
import { OS } from './constants';
|
|
41
|
+
export declare function retrieveData(url: string, headers?: import('axios').AxiosRequestConfig['headers'], opts?: Pick<import('axios').AxiosRequestConfig, 'timeout' | 'responseType'>): Promise<any>;
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* @param {any} obj log owner instance
|
|
43
|
-
* @param {string?} sessionId Optional session identifier
|
|
44
|
-
* @returns {string}
|
|
43
|
+
* Gets the OS name for the current system.
|
|
44
|
+
* @returns The OS name ('win', 'mac', or 'linux').
|
|
45
45
|
*/
|
|
46
|
-
export
|
|
46
|
+
export declare const getOsName: (() => (typeof OS)[keyof typeof OS]) & _.MemoizedFunction;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* @param {any} value to be converted
|
|
51
|
-
* @returns {number | null}
|
|
48
|
+
* Gets the CPU type for the current system.
|
|
49
|
+
* @returns The CPU type ('intel' or 'arm').
|
|
52
50
|
*/
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
export declare const getCpuType: (() => (typeof CPU)[keyof typeof CPU]) & _.MemoizedFunction;
|
|
52
|
+
/**
|
|
53
|
+
* Gets OS information including name, architecture, and CPU type.
|
|
54
|
+
* @returns A promise that resolves to OS information.
|
|
55
|
+
*/
|
|
56
|
+
export declare const getOsInfo: (() => Promise<OSInfo>) & _.MemoizedFunction;
|
|
57
|
+
/**
|
|
58
|
+
* Generates log prefix string.
|
|
59
|
+
* @param obj - Log owner instance.
|
|
60
|
+
* @param sessionId - Optional session identifier.
|
|
61
|
+
* @returns The generated log prefix string.
|
|
62
|
+
*/
|
|
63
|
+
export declare function generateLogPrefix(obj: any, sessionId?: string | null): string;
|
|
64
|
+
/**
|
|
65
|
+
* Converts the given object to an integer number if possible.
|
|
66
|
+
* @param value - The value to be converted.
|
|
67
|
+
* @returns The integer value or null if conversion is not possible.
|
|
68
|
+
*/
|
|
69
|
+
export declare function convertToInt(value: any): number | null;
|
|
56
70
|
//# sourceMappingURL=utils.d.ts.map
|
package/build/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AAOvB,OAAO,EAAC,EAAE,EAAE,GAAG,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAC,0BAA0B,EAAE,MAAM,EAAC,MAAM,SAAS,CAAC;AAmBhE,eAAO,MAAM,2BAA2B,EAAE,0BAIxC,CAAC;AACH,eAAO,MAAM,WAAW,QAA6C,CAAC;AAEtE;;;;;GAKG;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Default = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getOsInfo = exports.getCpuType = exports.getOsName = exports.CD_VER = exports.CD_BASE_DIR = exports.CHROMEDRIVER_CHROME_MAPPING = void 0;
|
|
7
|
+
exports.getMostRecentChromedriver = getMostRecentChromedriver;
|
|
7
8
|
exports.getChromeVersion = getChromeVersion;
|
|
8
9
|
exports.getChromedriverDir = getChromedriverDir;
|
|
9
10
|
exports.getChromedriverBinaryPath = getChromedriverBinaryPath;
|
|
10
|
-
exports.getMostRecentChromedriver = getMostRecentChromedriver;
|
|
11
11
|
exports.retrieveData = retrieveData;
|
|
12
12
|
exports.generateLogPrefix = generateLogPrefix;
|
|
13
13
|
exports.convertToInt = convertToInt;
|
|
@@ -19,13 +19,11 @@ const compare_versions_1 = require("compare-versions");
|
|
|
19
19
|
const axios_1 = __importDefault(require("axios"));
|
|
20
20
|
const os_1 = __importDefault(require("os"));
|
|
21
21
|
const constants_1 = require("./constants");
|
|
22
|
-
Object.defineProperty(exports, "OS", { enumerable: true, get: function () { return constants_1.OS; } });
|
|
23
22
|
const CD_EXECUTABLE_PREFIX = 'chromedriver';
|
|
24
23
|
const MODULE_NAME = 'appium-chromedriver';
|
|
25
24
|
/**
|
|
26
25
|
* Calculates the path to the current module's root folder
|
|
27
|
-
*
|
|
28
|
-
* @returns {string} The full path to module root
|
|
26
|
+
* @returns The full path to module root
|
|
29
27
|
* @throws {Error} If the current module root folder cannot be determined
|
|
30
28
|
*/
|
|
31
29
|
const getModuleRoot = lodash_1.default.memoize(function getModuleRoot() {
|
|
@@ -36,44 +34,47 @@ const getModuleRoot = lodash_1.default.memoize(function getModuleRoot() {
|
|
|
36
34
|
return root;
|
|
37
35
|
});
|
|
38
36
|
// Chromedriver version: minimum Chrome version
|
|
39
|
-
|
|
40
|
-
exports.
|
|
41
|
-
const CD_BASE_DIR = path_1.default.join(getModuleRoot(), 'chromedriver');
|
|
42
|
-
exports.CD_BASE_DIR = CD_BASE_DIR;
|
|
37
|
+
exports.CHROMEDRIVER_CHROME_MAPPING = require(path_1.default.join(getModuleRoot(), 'config', 'mapping.json'));
|
|
38
|
+
exports.CD_BASE_DIR = path_1.default.join(getModuleRoot(), 'chromedriver');
|
|
43
39
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @param
|
|
46
|
-
* @returns
|
|
40
|
+
* Gets the most recent Chromedriver version from the mapping.
|
|
41
|
+
* @param mapping - The Chromedriver version mapping (defaults to the static mapping).
|
|
42
|
+
* @returns The most recent version string.
|
|
43
|
+
* @throws {Error} If the mapping is empty.
|
|
47
44
|
*/
|
|
48
|
-
function getMostRecentChromedriver(mapping = CHROMEDRIVER_CHROME_MAPPING) {
|
|
45
|
+
function getMostRecentChromedriver(mapping = exports.CHROMEDRIVER_CHROME_MAPPING) {
|
|
49
46
|
if (lodash_1.default.isEmpty(mapping)) {
|
|
50
47
|
throw new Error('Unable to get most recent Chromedriver version from empty mapping');
|
|
51
48
|
}
|
|
52
|
-
return
|
|
49
|
+
return lodash_1.default.last(lodash_1.default.keys(mapping).sort(compare_versions_1.compareVersions));
|
|
53
50
|
}
|
|
54
|
-
|
|
51
|
+
exports.CD_VER = process.env.npm_config_chromedriver_version ||
|
|
55
52
|
process.env.CHROMEDRIVER_VERSION ||
|
|
56
53
|
getMostRecentChromedriver();
|
|
57
|
-
exports.CD_VER = CD_VER;
|
|
58
54
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
62
|
-
* @returns
|
|
55
|
+
* Gets the Chrome version for a given bundle ID using ADB.
|
|
56
|
+
* @param adb - The ADB instance to use.
|
|
57
|
+
* @param bundleId - The bundle ID of the Chrome/WebView app.
|
|
58
|
+
* @returns The version name string, or undefined if not found.
|
|
63
59
|
*/
|
|
64
60
|
async function getChromeVersion(adb, bundleId) {
|
|
65
61
|
const { versionName } = await adb.getPackageInfo(bundleId);
|
|
66
62
|
return versionName;
|
|
67
63
|
}
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Gets the directory path for Chromedriver executables for a given OS.
|
|
66
|
+
* @param osName - The OS name (defaults to the current OS).
|
|
67
|
+
* @returns The full path to the Chromedriver directory.
|
|
68
|
+
*/
|
|
69
|
+
function getChromedriverDir(osName = (0, exports.getOsName)()) {
|
|
70
|
+
return path_1.default.resolve(exports.CD_BASE_DIR, osName);
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @param
|
|
74
|
-
* @returns
|
|
73
|
+
* Gets the path to the Chromedriver binary for a given OS.
|
|
74
|
+
* @param osName - The OS name (defaults to the current OS).
|
|
75
|
+
* @returns The full path to the Chromedriver binary.
|
|
75
76
|
*/
|
|
76
|
-
async function getChromedriverBinaryPath(osName = getOsName()) {
|
|
77
|
+
async function getChromedriverBinaryPath(osName = (0, exports.getOsName)()) {
|
|
77
78
|
const rootDir = getChromedriverDir(osName);
|
|
78
79
|
const pathSuffix = osName === constants_1.OS.WINDOWS ? '.exe' : '';
|
|
79
80
|
const paths = await support_1.fs.glob(`${CD_EXECUTABLE_PREFIX}*${pathSuffix}`, {
|
|
@@ -84,14 +85,14 @@ async function getChromedriverBinaryPath(osName = getOsName()) {
|
|
|
84
85
|
});
|
|
85
86
|
return lodash_1.default.isEmpty(paths)
|
|
86
87
|
? path_1.default.resolve(rootDir, `${CD_EXECUTABLE_PREFIX}${pathSuffix}`)
|
|
87
|
-
:
|
|
88
|
+
: lodash_1.default.first(paths);
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @param
|
|
92
|
-
* @param
|
|
93
|
-
* @param
|
|
94
|
-
* @returns
|
|
91
|
+
* Retrieves data from a URL using axios.
|
|
92
|
+
* @param url - The URL to fetch from.
|
|
93
|
+
* @param headers - Optional HTTP headers.
|
|
94
|
+
* @param opts - Optional configuration (timeout, responseType).
|
|
95
|
+
* @returns The response data.
|
|
95
96
|
*/
|
|
96
97
|
async function retrieveData(url, headers, opts = {}) {
|
|
97
98
|
const { timeout = 5000, responseType = 'text' } = opts;
|
|
@@ -103,9 +104,10 @@ async function retrieveData(url, headers, opts = {}) {
|
|
|
103
104
|
})).data;
|
|
104
105
|
}
|
|
105
106
|
/**
|
|
106
|
-
*
|
|
107
|
+
* Gets the OS name for the current system.
|
|
108
|
+
* @returns The OS name ('win', 'mac', or 'linux').
|
|
107
109
|
*/
|
|
108
|
-
|
|
110
|
+
exports.getOsName = lodash_1.default.memoize(function getOsName() {
|
|
109
111
|
if (support_1.system.isWindows()) {
|
|
110
112
|
return constants_1.OS.WINDOWS;
|
|
111
113
|
}
|
|
@@ -114,46 +116,41 @@ const getOsName = lodash_1.default.memoize(function getOsName() {
|
|
|
114
116
|
}
|
|
115
117
|
return constants_1.OS.LINUX;
|
|
116
118
|
});
|
|
117
|
-
exports.getOsName = getOsName;
|
|
118
|
-
const getCpuType = lodash_1.default.memoize(
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Gets the CPU type for the current system.
|
|
121
|
+
* @returns The CPU type ('intel' or 'arm').
|
|
121
122
|
*/
|
|
122
|
-
function getCpuType() {
|
|
123
|
+
exports.getCpuType = lodash_1.default.memoize(function getCpuType() {
|
|
123
124
|
return lodash_1.default.includes(lodash_1.default.toLower(os_1.default.cpus()[0].model), 'apple') ? constants_1.CPU.ARM : constants_1.CPU.INTEL;
|
|
124
125
|
});
|
|
125
|
-
exports.getCpuType = getCpuType;
|
|
126
|
-
const getOsInfo = lodash_1.default.memoize(
|
|
127
126
|
/**
|
|
128
|
-
*
|
|
127
|
+
* Gets OS information including name, architecture, and CPU type.
|
|
128
|
+
* @returns A promise that resolves to OS information.
|
|
129
129
|
*/
|
|
130
|
-
async function getOsInfo() {
|
|
130
|
+
exports.getOsInfo = lodash_1.default.memoize(async function getOsInfo() {
|
|
131
131
|
return {
|
|
132
|
-
name: getOsName(),
|
|
132
|
+
name: (0, exports.getOsName)(),
|
|
133
133
|
arch: String(await support_1.system.arch()),
|
|
134
|
-
cpu: getCpuType(),
|
|
134
|
+
cpu: (0, exports.getCpuType)(),
|
|
135
135
|
};
|
|
136
136
|
});
|
|
137
|
-
exports.getOsInfo = getOsInfo;
|
|
138
137
|
// @ts-expect-error to avoid error
|
|
139
138
|
// TS2345: Argument of type '{}' is not assignable to parameter of type 'DriverOpts<Readonly<Record<string, Constraint>>>'
|
|
140
139
|
// Type '{}' is missing the following properties from type 'ServerArgs': address, allowCors, allowInsecure, basePath, and 26 more.
|
|
141
140
|
const getBaseDriverInstance = lodash_1.default.memoize(() => new base_driver_1.BaseDriver({}, false));
|
|
142
141
|
/**
|
|
143
|
-
* Generates log prefix string
|
|
144
|
-
*
|
|
145
|
-
* @param
|
|
146
|
-
* @
|
|
147
|
-
* @returns {string}
|
|
142
|
+
* Generates log prefix string.
|
|
143
|
+
* @param obj - Log owner instance.
|
|
144
|
+
* @param sessionId - Optional session identifier.
|
|
145
|
+
* @returns The generated log prefix string.
|
|
148
146
|
*/
|
|
149
147
|
function generateLogPrefix(obj, sessionId = null) {
|
|
150
148
|
return getBaseDriverInstance().helpers.generateDriverLogPrefix(obj, sessionId ? sessionId : undefined);
|
|
151
149
|
}
|
|
152
150
|
/**
|
|
153
|
-
* Converts the given object to an integer number if possible
|
|
154
|
-
*
|
|
155
|
-
* @
|
|
156
|
-
* @returns {number | null}
|
|
151
|
+
* Converts the given object to an integer number if possible.
|
|
152
|
+
* @param value - The value to be converted.
|
|
153
|
+
* @returns The integer value or null if conversion is not possible.
|
|
157
154
|
*/
|
|
158
155
|
function convertToInt(value) {
|
|
159
156
|
switch (typeof value) {
|
package/build/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../lib/utils.
|
|
1
|
+
{"version":3,"file":"utils.js","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