@appium/base-driver 8.7.0 → 8.7.2
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/lib/basedriver/capabilities.d.ts +207 -42
- package/build/lib/basedriver/capabilities.d.ts.map +1 -1
- package/build/lib/basedriver/capabilities.js +39 -44
- package/build/lib/basedriver/capabilities.js.map +1 -0
- package/build/lib/basedriver/commands/event.js +3 -3
- package/build/lib/basedriver/commands/event.js.map +1 -0
- package/build/lib/basedriver/commands/execute.js +3 -3
- package/build/lib/basedriver/commands/execute.js.map +1 -0
- package/build/lib/basedriver/commands/find.js.map +1 -0
- package/build/lib/basedriver/commands/index.js.map +1 -0
- package/build/lib/basedriver/commands/log.js +3 -3
- package/build/lib/basedriver/commands/log.js.map +1 -0
- package/build/lib/basedriver/commands/session.js +3 -3
- package/build/lib/basedriver/commands/session.js.map +1 -0
- package/build/lib/basedriver/commands/settings.js.map +1 -0
- package/build/lib/basedriver/commands/timeout.js +3 -3
- package/build/lib/basedriver/commands/timeout.js.map +1 -0
- package/build/lib/basedriver/core.d.ts +173 -22
- package/build/lib/basedriver/core.d.ts.map +1 -1
- package/build/lib/basedriver/core.js +4 -6
- package/build/lib/basedriver/core.js.map +1 -0
- package/build/lib/basedriver/desired-caps.d.ts +0 -2
- package/build/lib/basedriver/desired-caps.d.ts.map +1 -1
- package/build/lib/basedriver/desired-caps.js +4 -53
- package/build/lib/basedriver/desired-caps.js.map +1 -0
- package/build/lib/basedriver/device-settings.js +3 -3
- package/build/lib/basedriver/device-settings.js.map +1 -0
- package/build/lib/basedriver/driver.d.ts +318 -28
- package/build/lib/basedriver/driver.d.ts.map +1 -1
- package/build/lib/basedriver/driver.js +23 -30
- package/build/lib/basedriver/driver.js.map +1 -0
- package/build/lib/basedriver/helpers.d.ts +1 -1
- package/build/lib/basedriver/helpers.d.ts.map +1 -1
- package/build/lib/basedriver/helpers.js +3 -3
- package/build/lib/basedriver/helpers.js.map +1 -0
- package/build/lib/basedriver/logger.js.map +1 -0
- package/build/lib/constants.js.map +1 -0
- package/build/lib/express/crash.js.map +1 -0
- package/build/lib/express/express-logging.js +3 -3
- package/build/lib/express/express-logging.js.map +1 -0
- package/build/lib/express/idempotency.js +3 -3
- package/build/lib/express/idempotency.js.map +1 -0
- package/build/lib/express/logger.js.map +1 -0
- package/build/lib/express/middleware.js +3 -3
- package/build/lib/express/middleware.js.map +1 -0
- package/build/lib/express/server.js +3 -3
- package/build/lib/express/server.js.map +1 -0
- package/build/lib/express/static.js +3 -3
- package/build/lib/express/static.js.map +1 -0
- package/build/lib/express/websocket.js +3 -3
- package/build/lib/express/websocket.js.map +1 -0
- package/build/lib/helpers/capabilities.d.ts +66 -5
- package/build/lib/helpers/capabilities.d.ts.map +1 -1
- package/build/lib/helpers/capabilities.js +7 -7
- package/build/lib/helpers/capabilities.js.map +1 -0
- package/build/lib/index.d.ts +1 -1
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +10 -3
- package/build/lib/index.js.map +1 -0
- package/build/lib/jsonwp-proxy/protocol-converter.js +3 -3
- package/build/lib/jsonwp-proxy/protocol-converter.js.map +1 -0
- package/build/lib/jsonwp-proxy/proxy.js +3 -3
- package/build/lib/jsonwp-proxy/proxy.js.map +1 -0
- package/build/lib/jsonwp-status/status.js +3 -3
- package/build/lib/jsonwp-status/status.js.map +1 -0
- package/build/lib/protocol/errors.js +3 -3
- package/build/lib/protocol/errors.js.map +1 -0
- package/build/lib/protocol/helpers.js +3 -3
- package/build/lib/protocol/helpers.js.map +1 -0
- package/build/lib/protocol/index.js.map +1 -0
- package/build/lib/protocol/protocol.js +3 -3
- package/build/lib/protocol/protocol.js.map +1 -0
- package/build/lib/protocol/routes.js +3 -3
- package/build/lib/protocol/routes.js.map +1 -0
- package/build/lib/protocol/validators.js +3 -3
- package/build/lib/protocol/validators.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/basedriver/capabilities.js +151 -93
- package/lib/basedriver/core.js +35 -19
- package/lib/basedriver/desired-caps.js +1 -53
- package/lib/basedriver/driver.js +98 -51
- package/lib/helpers/capabilities.js +19 -9
- package/lib/index.js +1 -0
- package/package.json +10 -11
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -17,6 +15,8 @@ var _support = require("@appium/support");
|
|
|
17
15
|
|
|
18
16
|
var _errors = require("../protocol/errors");
|
|
19
17
|
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
20
|
const MAX_SETTINGS_SIZE = 20 * 1024 * 1024;
|
|
21
21
|
exports.MAX_SETTINGS_SIZE = MAX_SETTINGS_SIZE;
|
|
22
22
|
|
|
@@ -66,4 +66,4 @@ class DeviceSettings {
|
|
|
66
66
|
exports.DeviceSettings = DeviceSettings;
|
|
67
67
|
var _default = DeviceSettings;
|
|
68
68
|
exports.default = _default;
|
|
69
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJNQVhfU0VUVElOR1NfU0laRSIsIkRldmljZVNldHRpbmdzIiwiX3NldHRpbmdzIiwiX29uU2V0dGluZ3NVcGRhdGUiLCJjb25zdHJ1Y3RvciIsImRlZmF1bHRTZXR0aW5ncyIsIm9uU2V0dGluZ3NVcGRhdGUiLCJ1cGRhdGUiLCJuZXdTZXR0aW5ncyIsIl8iLCJpc1BsYWluT2JqZWN0IiwiZXJyb3JzIiwiSW52YWxpZEFyZ3VtZW50RXJyb3IiLCJKU09OIiwic3RyaW5naWZ5Iiwibm9kZSIsImdldE9iamVjdFNpemUiLCJ1dGlsIiwidG9SZWFkYWJsZVNpemVTdHJpbmciLCJwcm9wcyIsImtle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xpQkFBZ0JILElBQUssc0RBQWhDOztVQUNBO1FBQ0Q7TUFDRjs7TUFDRCxNQUFNLEtBQUtsQixpQkFBTCxDQUF1QmtCLElBQXZCLEVBQTZCYixXQUFXLENBQUNhLElBQUQsQ0FBeEMsRUFBZ0QsS0FBS25CLFNBQUwsQ0FBZW1CLElBQWYsQ0FBaEQsQ0FBTjtNQUNBLEtBQUtuQixTQUFMLENBQWVtQixJQUFmLElBQXVCYixXQUFXLENBQUNhLElBQUQsQ0FBbEM7SUFDRDtFQUNGOztFQUVESSxXQUFXLEdBQUc7SUFDWixPQUFPLEtBQUt2QixTQUFaO0VBQ0Q7O0FBekRrQjs7O2VBNERORCxjIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-settings.js","names":["MAX_SETTINGS_SIZE","DeviceSettings","_settings","_onSettingsUpdate","constructor","defaultSettings","onSettingsUpdate","update","newSettings","_","isPlainObject","errors","InvalidArgumentError","JSON","stringify","node","getObjectSize","util","toReadableSizeString","props","keys","prop","isUndefined","log","debug","getSettings"],"sources":["../../../lib/basedriver/device-settings.js"],"sourcesContent":["import _ from 'lodash';\nimport log from './logger';\nimport {node, util} from '@appium/support';\nimport {errors} from '../protocol/errors';\n\n/**\n * Maximum size (in bytes) of a given driver's settings object (which is internal to {@linkcode DriverSettings}).\n */\nexport const MAX_SETTINGS_SIZE = 20 * 1024 * 1024; // 20 MB\n\n/**\n * @template T\n * @implements {IDeviceSettings<T>}\n */\nclass DeviceSettings {\n /**\n * @protected\n * @type {Record<string,T>}\n */\n _settings;\n\n /**\n * @protected\n * @type {import('@appium/types').SettingsUpdateListener<T>}\n */\n _onSettingsUpdate;\n\n /**\n * Creates a _shallow copy_ of the `defaultSettings` parameter!\n * @param {Record<string,T>} [defaultSettings]\n * @param {import('@appium/types').SettingsUpdateListener<T>} [onSettingsUpdate]\n */\n constructor(defaultSettings = {}, onSettingsUpdate = async () => {}) {\n this._settings = {...defaultSettings};\n this._onSettingsUpdate = onSettingsUpdate;\n }\n\n /**\n * calls updateSettings from implementing driver every time a setting is changed.\n * @param {Record<string,T>} newSettings\n */\n async update(newSettings) {\n if (!_.isPlainObject(newSettings)) {\n throw new errors.InvalidArgumentError(\n `Settings update should be called with valid JSON. Got ` +\n `${JSON.stringify(newSettings)} instead`\n );\n }\n\n if (node.getObjectSize({...this._settings, ...newSettings}) >= MAX_SETTINGS_SIZE) {\n throw new errors.InvalidArgumentError(\n `New settings cannot be applied, because the overall ` +\n `object size exceeds the allowed limit of ${util.toReadableSizeString(MAX_SETTINGS_SIZE)}`\n );\n }\n\n const props = /** @type {(keyof T & string)[]} */ (_.keys(newSettings));\n for (const prop of props) {\n if (!_.isUndefined(this._settings[prop])) {\n if (this._settings[prop] === newSettings[prop]) {\n log.debug(`The value of '${prop}' setting did not change. Skipping the update for it`);\n continue;\n }\n }\n await this._onSettingsUpdate(prop, newSettings[prop], this._settings[prop]);\n this._settings[prop] = newSettings[prop];\n }\n }\n\n getSettings() {\n return this._settings;\n }\n}\n\nexport default DeviceSettings;\nexport {DeviceSettings};\n\n/**\n * @template T\n * @typedef {import('@appium/types').DeviceSettings<T>} IDeviceSettings\n */\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;AAKO,MAAMA,iBAAiB,GAAG,KAAK,IAAL,GAAY,IAAtC;;;AAMP,MAAMC,cAAN,CAAqB;EAKnBC,SAAS;EAMTC,iBAAiB;;EAOjBC,WAAW,CAACC,eAAe,GAAG,EAAnB,EAAuBC,gBAAgB,GAAG,YAAY,CAAE,CAAxD,EAA0D;IACnE,KAAKJ,SAAL,GAAiB,EAAC,GAAGG;IAAJ,CAAjB;IACA,KAAKF,iBAAL,GAAyBG,gBAAzB;EACD;;EAMW,MAANC,MAAM,CAACC,WAAD,EAAc;IACxB,IAAI,CAACC,eAAA,CAAEC,aAAF,CAAgBF,WAAhB,CAAL,EAAmC;MACjC,MAAM,IAAIG,cAAA,CAAOC,oBAAX,CACH,wDAAD,GACG,GAAEC,IAAI,CAACC,SAAL,CAAeN,WAAf,CAA4B,UAF7B,CAAN;IAID;;IAED,IAAIO,aAAA,CAAKC,aAAL,CAAmB,EAAC,GAAG,KAAKd,SAAT;MAAoB,GAAGM;IAAvB,CAAnB,KAA2DR,iBAA/D,EAAkF;MAChF,MAAM,IAAIW,cAAA,CAAOC,oBAAX,CACH,sDAAD,GACG,4CAA2CK,aAAA,CAAKC,oBAAL,CAA0BlB,iBAA1B,CAA6C,EAFvF,CAAN;IAID;;IAED,MAAMmB,KAAK,GAAwCV,eAAA,CAAEW,IAAF,CAAOZ,WAAP,CAAnD;;IACA,KAAK,MAAMa,IAAX,IAAmBF,KAAnB,EAA0B;MACxB,IAAI,CAACV,eAAA,CAAEa,WAAF,CAAc,KAAKpB,SAAL,CAAemB,IAAf,CAAd,CAAL,EAA0C;QACxC,IAAI,KAAKnB,SAAL,CAAemB,IAAf,MAAyBb,WAAW,CAACa,IAAD,CAAxC,EAAgD;UAC9CE,eAAA,CAAIC,KAAJ,CAAW,iBAAgBH,IAAK,sDAAhC;;UACA;QACD;MACF;;MACD,MAAM,KAAKlB,iBAAL,CAAuBkB,IAAvB,EAA6Bb,WAAW,CAACa,IAAD,CAAxC,EAAgD,KAAKnB,SAAL,CAAemB,IAAf,CAAhD,CAAN;MACA,KAAKnB,SAAL,CAAemB,IAAf,IAAuBb,WAAW,CAACa,IAAD,CAAlC;IACD;EACF;;EAEDI,WAAW,GAAG;IACZ,OAAO,KAAKvB,SAAZ;EACD;;AAzDkB;;;eA4DND,c"}
|
|
@@ -1,10 +1,142 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @implements {SessionHandler}
|
|
2
|
+
* @implements {SessionHandler<C>}
|
|
3
|
+
* @template {Constraints} C
|
|
4
|
+
* @template {StringRecord} [A=StringRecord]
|
|
5
|
+
* @extends {DriverCore<C>}
|
|
3
6
|
*/
|
|
4
|
-
export class BaseDriverCore extends DriverCore implements SessionHandler {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
export class BaseDriverCore<C extends Readonly<Record<string, import("@appium/types").Constraint>>, A extends import("@appium/types").StringRecord = import("@appium/types").StringRecord> extends DriverCore<C> implements SessionHandler<C> {
|
|
8
|
+
static BASE_DESIRED_CAP_CONSTRAINTS: {
|
|
9
|
+
readonly platformName: {
|
|
10
|
+
readonly presence: true;
|
|
11
|
+
readonly isString: true;
|
|
12
|
+
};
|
|
13
|
+
readonly app: {
|
|
14
|
+
readonly isString: true;
|
|
15
|
+
};
|
|
16
|
+
readonly deviceName: {
|
|
17
|
+
readonly isString: true;
|
|
18
|
+
};
|
|
19
|
+
readonly platformVersion: {
|
|
20
|
+
readonly isString: true;
|
|
21
|
+
};
|
|
22
|
+
readonly newCommandTimeout: {
|
|
23
|
+
readonly isNumber: true;
|
|
24
|
+
};
|
|
25
|
+
readonly automationName: {
|
|
26
|
+
readonly isString: true;
|
|
27
|
+
};
|
|
28
|
+
readonly autoLaunch: {
|
|
29
|
+
readonly isBoolean: true;
|
|
30
|
+
};
|
|
31
|
+
readonly udid: {
|
|
32
|
+
readonly isString: true;
|
|
33
|
+
};
|
|
34
|
+
readonly orientation: {
|
|
35
|
+
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
36
|
+
};
|
|
37
|
+
readonly autoWebview: {
|
|
38
|
+
readonly isBoolean: true;
|
|
39
|
+
};
|
|
40
|
+
readonly noReset: {
|
|
41
|
+
readonly isBoolean: true;
|
|
42
|
+
};
|
|
43
|
+
readonly fullReset: {
|
|
44
|
+
readonly isBoolean: true;
|
|
45
|
+
};
|
|
46
|
+
readonly language: {
|
|
47
|
+
readonly isString: true;
|
|
48
|
+
};
|
|
49
|
+
readonly locale: {
|
|
50
|
+
readonly isString: true;
|
|
51
|
+
};
|
|
52
|
+
readonly eventTimings: {
|
|
53
|
+
readonly isBoolean: true;
|
|
54
|
+
};
|
|
55
|
+
readonly printPageSourceOnFindFailure: {
|
|
56
|
+
readonly isBoolean: true;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
constructor(opts?: import("./core").DriverOpts<C>, shouldValidateCaps?: boolean | undefined);
|
|
60
|
+
/**
|
|
61
|
+
* @type {A & ServerArgs}
|
|
62
|
+
*/
|
|
63
|
+
cliArgs: A & ServerArgs;
|
|
64
|
+
/**
|
|
65
|
+
* @type {Capabilities<C>}
|
|
66
|
+
*/
|
|
67
|
+
caps: Capabilities<C>;
|
|
68
|
+
/**
|
|
69
|
+
* @type {W3CCapabilities<C>}
|
|
70
|
+
*/
|
|
71
|
+
originalCaps: W3CCapabilities<C>;
|
|
72
|
+
/**
|
|
73
|
+
* @type {C}
|
|
74
|
+
*/
|
|
75
|
+
desiredCapConstraints: C;
|
|
76
|
+
/**
|
|
77
|
+
* @type {DriverOpts<C> & DriverOpts<BaseDriverCapConstraints>}
|
|
78
|
+
*/
|
|
79
|
+
opts: DriverOpts<C> & DriverOpts<BaseDriverCapConstraints>;
|
|
80
|
+
/**
|
|
81
|
+
* Contains the base constraints plus whatever the subclass wants to add.
|
|
82
|
+
*
|
|
83
|
+
* Subclasses _shouldn't_ need to use this. If you need to use this, please create
|
|
84
|
+
* an issue:
|
|
85
|
+
* @see https://github.com/appium/appium/issues/new
|
|
86
|
+
* @type {Readonly<BaseDriverCapConstraints & C>}
|
|
87
|
+
* @protected
|
|
88
|
+
*/
|
|
89
|
+
protected get _desiredCapConstraints(): Readonly<{
|
|
90
|
+
readonly platformName: {
|
|
91
|
+
readonly presence: true;
|
|
92
|
+
readonly isString: true;
|
|
93
|
+
};
|
|
94
|
+
readonly app: {
|
|
95
|
+
readonly isString: true;
|
|
96
|
+
};
|
|
97
|
+
readonly deviceName: {
|
|
98
|
+
readonly isString: true;
|
|
99
|
+
};
|
|
100
|
+
readonly platformVersion: {
|
|
101
|
+
readonly isString: true;
|
|
102
|
+
};
|
|
103
|
+
readonly newCommandTimeout: {
|
|
104
|
+
readonly isNumber: true;
|
|
105
|
+
};
|
|
106
|
+
readonly automationName: {
|
|
107
|
+
readonly isString: true;
|
|
108
|
+
};
|
|
109
|
+
readonly autoLaunch: {
|
|
110
|
+
readonly isBoolean: true;
|
|
111
|
+
};
|
|
112
|
+
readonly udid: {
|
|
113
|
+
readonly isString: true;
|
|
114
|
+
};
|
|
115
|
+
readonly orientation: {
|
|
116
|
+
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
117
|
+
};
|
|
118
|
+
readonly autoWebview: {
|
|
119
|
+
readonly isBoolean: true;
|
|
120
|
+
};
|
|
121
|
+
readonly noReset: {
|
|
122
|
+
readonly isBoolean: true;
|
|
123
|
+
};
|
|
124
|
+
readonly fullReset: {
|
|
125
|
+
readonly isBoolean: true;
|
|
126
|
+
};
|
|
127
|
+
readonly language: {
|
|
128
|
+
readonly isString: true;
|
|
129
|
+
};
|
|
130
|
+
readonly locale: {
|
|
131
|
+
readonly isString: true;
|
|
132
|
+
};
|
|
133
|
+
readonly eventTimings: {
|
|
134
|
+
readonly isBoolean: true;
|
|
135
|
+
};
|
|
136
|
+
readonly printPageSourceOnFindFailure: {
|
|
137
|
+
readonly isBoolean: true;
|
|
138
|
+
};
|
|
139
|
+
} & C>;
|
|
8
140
|
/**
|
|
9
141
|
* @param {string} cmd
|
|
10
142
|
* @param {...any} args
|
|
@@ -13,9 +145,9 @@ export class BaseDriverCore extends DriverCore implements SessionHandler {
|
|
|
13
145
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
14
146
|
/**
|
|
15
147
|
*
|
|
16
|
-
* @param {Error} err
|
|
148
|
+
* @param {Error|import('../protocol/errors').NoSuchDriverError} err
|
|
17
149
|
*/
|
|
18
|
-
startUnexpectedShutdown(err?: Error): Promise<void>;
|
|
150
|
+
startUnexpectedShutdown(err?: Error | import('../protocol/errors').NoSuchDriverError): Promise<void>;
|
|
19
151
|
startNewCommandTimeout(): Promise<void>;
|
|
20
152
|
/**
|
|
21
153
|
*
|
|
@@ -37,13 +169,13 @@ export class BaseDriverCore extends DriverCore implements SessionHandler {
|
|
|
37
169
|
* Appium 2 has dropped the support of these, so now we only accept capability
|
|
38
170
|
* objects in W3C format and thus allow any of the three arguments to represent
|
|
39
171
|
* the latter.
|
|
40
|
-
* @param {W3CCapabilities} w3cCapabilities1
|
|
41
|
-
* @param {W3CCapabilities} [w3cCapabilities2]
|
|
42
|
-
* @param {W3CCapabilities} [w3cCapabilities]
|
|
172
|
+
* @param {W3CCapabilities<C>} w3cCapabilities1
|
|
173
|
+
* @param {W3CCapabilities<C>} [w3cCapabilities2]
|
|
174
|
+
* @param {W3CCapabilities<C>} [w3cCapabilities]
|
|
43
175
|
* @param {DriverData[]} [driverData]
|
|
44
|
-
* @returns {Promise<[string,
|
|
176
|
+
* @returns {Promise<[string,Capabilities<C>]>}
|
|
45
177
|
*/
|
|
46
|
-
createSession(w3cCapabilities1: W3CCapabilities
|
|
178
|
+
createSession(w3cCapabilities1: W3CCapabilities<C>, w3cCapabilities2?: W3CCapabilities<C, void> | undefined, w3cCapabilities?: W3CCapabilities<C, void> | undefined, driverData?: import("@appium/types").DriverData[] | undefined): Promise<[string, Capabilities<C>]>;
|
|
47
179
|
/**
|
|
48
180
|
*
|
|
49
181
|
* @param {string} [sessionId]
|
|
@@ -55,34 +187,192 @@ export class BaseDriverCore extends DriverCore implements SessionHandler {
|
|
|
55
187
|
*
|
|
56
188
|
* @param {Capabilities} caps
|
|
57
189
|
*/
|
|
58
|
-
logExtraCaps(caps:
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
}>): void;
|
|
190
|
+
logExtraCaps(caps: Capabilities): void;
|
|
61
191
|
/**
|
|
62
192
|
*
|
|
63
|
-
* @param {Capabilities} caps
|
|
193
|
+
* @param {Capabilities<C>} caps
|
|
64
194
|
* @returns {boolean}
|
|
65
195
|
*/
|
|
66
|
-
validateDesiredCaps(caps: Capabilities): boolean;
|
|
67
|
-
|
|
68
|
-
|
|
196
|
+
validateDesiredCaps(caps: Capabilities<C>): boolean;
|
|
197
|
+
}
|
|
198
|
+
declare const BaseDriver_base: import("./commands/execute").ExecuteBase;
|
|
199
|
+
/**
|
|
200
|
+
* This ensures that all of the mixins correctly implement the interface described in {@linkcode Driver}.
|
|
201
|
+
* @template {Constraints} [C={}]
|
|
202
|
+
* @implements {Driver<C>}
|
|
203
|
+
*/
|
|
204
|
+
export class BaseDriver<C extends Readonly<Record<string, import("@appium/types").Constraint>> = {}> extends BaseDriver_base implements Driver<C> {
|
|
205
|
+
constructor(...arguments_: any[]);
|
|
69
206
|
}
|
|
70
207
|
export default BaseDriver;
|
|
71
208
|
export type HTTPMethod = import('@appium/types').HTTPMethod;
|
|
72
|
-
export type Driver = import('@appium/types').Driver;
|
|
73
209
|
export type ExternalDriver = import('@appium/types').ExternalDriver;
|
|
74
|
-
export type Capabilities = import('@appium/types').Capabilities;
|
|
75
|
-
export type W3CCapabilities = import('@appium/types').W3CCapabilities;
|
|
76
210
|
export type DriverData = import('@appium/types').DriverData;
|
|
211
|
+
export type Constraints = import('@appium/types').Constraints;
|
|
212
|
+
export type Constraint = import('@appium/types').Constraint;
|
|
213
|
+
export type StringRecord = import('@appium/types').StringRecord;
|
|
214
|
+
export type BaseDriverCapConstraints = import('@appium/types').BaseDriverCapConstraints;
|
|
215
|
+
export type ServerArgs = import('@appium/types').ServerArgs;
|
|
77
216
|
export type UpdateServerCallback = (app: import('express').Express, httpServer: import('@appium/types').AppiumServer) => import('type-fest').Promisable<void>;
|
|
78
217
|
/**
|
|
79
218
|
* This is used to extend {@linkcode BaseDriverCore } by the mixins and also external drivers.
|
|
80
219
|
*/
|
|
81
|
-
export type BaseDriverBase<Proto = {}, Static = {}> = import('@appium/types').Class<BaseDriverCore & Proto, import('@appium/types').DriverStatic & Static>;
|
|
82
|
-
export type SessionHandler
|
|
220
|
+
export type BaseDriverBase<Proto = {}, Static = {}> = import('@appium/types').Class<BaseDriverCore<any, import("@appium/types").StringRecord> & Proto, import('@appium/types').DriverStatic & Static>;
|
|
221
|
+
export type SessionHandler<C extends Readonly<Record<string, import("@appium/types").Constraint>> = {
|
|
222
|
+
readonly platformName: {
|
|
223
|
+
readonly presence: true;
|
|
224
|
+
readonly isString: true;
|
|
225
|
+
};
|
|
226
|
+
readonly app: {
|
|
227
|
+
readonly isString: true;
|
|
228
|
+
};
|
|
229
|
+
readonly deviceName: {
|
|
230
|
+
readonly isString: true;
|
|
231
|
+
};
|
|
232
|
+
readonly platformVersion: {
|
|
233
|
+
readonly isString: true;
|
|
234
|
+
};
|
|
235
|
+
readonly newCommandTimeout: {
|
|
236
|
+
readonly isNumber: true;
|
|
237
|
+
};
|
|
238
|
+
readonly automationName: {
|
|
239
|
+
readonly isString: true;
|
|
240
|
+
};
|
|
241
|
+
readonly autoLaunch: {
|
|
242
|
+
readonly isBoolean: true;
|
|
243
|
+
};
|
|
244
|
+
readonly udid: {
|
|
245
|
+
readonly isString: true;
|
|
246
|
+
};
|
|
247
|
+
readonly orientation: {
|
|
248
|
+
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
249
|
+
};
|
|
250
|
+
readonly autoWebview: {
|
|
251
|
+
readonly isBoolean: true;
|
|
252
|
+
};
|
|
253
|
+
readonly noReset: {
|
|
254
|
+
readonly isBoolean: true;
|
|
255
|
+
};
|
|
256
|
+
readonly fullReset: {
|
|
257
|
+
readonly isBoolean: true;
|
|
258
|
+
};
|
|
259
|
+
readonly language: {
|
|
260
|
+
readonly isString: true;
|
|
261
|
+
};
|
|
262
|
+
readonly locale: {
|
|
263
|
+
readonly isString: true;
|
|
264
|
+
};
|
|
265
|
+
readonly eventTimings: {
|
|
266
|
+
readonly isBoolean: true;
|
|
267
|
+
};
|
|
268
|
+
readonly printPageSourceOnFindFailure: {
|
|
269
|
+
readonly isBoolean: true;
|
|
270
|
+
};
|
|
271
|
+
}> = import('@appium/types').SessionHandler<[string, object], void, C>;
|
|
272
|
+
export type Capabilities<C extends Readonly<Record<string, import("@appium/types").Constraint>> = {
|
|
273
|
+
readonly platformName: {
|
|
274
|
+
readonly presence: true;
|
|
275
|
+
readonly isString: true;
|
|
276
|
+
};
|
|
277
|
+
readonly app: {
|
|
278
|
+
readonly isString: true;
|
|
279
|
+
};
|
|
280
|
+
readonly deviceName: {
|
|
281
|
+
readonly isString: true;
|
|
282
|
+
};
|
|
283
|
+
readonly platformVersion: {
|
|
284
|
+
readonly isString: true;
|
|
285
|
+
};
|
|
286
|
+
readonly newCommandTimeout: {
|
|
287
|
+
readonly isNumber: true;
|
|
288
|
+
};
|
|
289
|
+
readonly automationName: {
|
|
290
|
+
readonly isString: true;
|
|
291
|
+
};
|
|
292
|
+
readonly autoLaunch: {
|
|
293
|
+
readonly isBoolean: true;
|
|
294
|
+
};
|
|
295
|
+
readonly udid: {
|
|
296
|
+
readonly isString: true;
|
|
297
|
+
};
|
|
298
|
+
readonly orientation: {
|
|
299
|
+
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
300
|
+
};
|
|
301
|
+
readonly autoWebview: {
|
|
302
|
+
readonly isBoolean: true;
|
|
303
|
+
};
|
|
304
|
+
readonly noReset: {
|
|
305
|
+
readonly isBoolean: true;
|
|
306
|
+
};
|
|
307
|
+
readonly fullReset: {
|
|
308
|
+
readonly isBoolean: true;
|
|
309
|
+
};
|
|
310
|
+
readonly language: {
|
|
311
|
+
readonly isString: true;
|
|
312
|
+
};
|
|
313
|
+
readonly locale: {
|
|
314
|
+
readonly isString: true;
|
|
315
|
+
};
|
|
316
|
+
readonly eventTimings: {
|
|
317
|
+
readonly isBoolean: true;
|
|
318
|
+
};
|
|
319
|
+
readonly printPageSourceOnFindFailure: {
|
|
320
|
+
readonly isBoolean: true;
|
|
321
|
+
};
|
|
322
|
+
}, Extra extends void | import("@appium/types").StringRecord = void> = import('@appium/types').Capabilities<C, Extra>;
|
|
323
|
+
export type W3CCapabilities<C extends Readonly<Record<string, import("@appium/types").Constraint>> = {
|
|
324
|
+
readonly platformName: {
|
|
325
|
+
readonly presence: true;
|
|
326
|
+
readonly isString: true;
|
|
327
|
+
};
|
|
328
|
+
readonly app: {
|
|
329
|
+
readonly isString: true;
|
|
330
|
+
};
|
|
331
|
+
readonly deviceName: {
|
|
332
|
+
readonly isString: true;
|
|
333
|
+
};
|
|
334
|
+
readonly platformVersion: {
|
|
335
|
+
readonly isString: true;
|
|
336
|
+
};
|
|
337
|
+
readonly newCommandTimeout: {
|
|
338
|
+
readonly isNumber: true;
|
|
339
|
+
};
|
|
340
|
+
readonly automationName: {
|
|
341
|
+
readonly isString: true;
|
|
342
|
+
};
|
|
343
|
+
readonly autoLaunch: {
|
|
344
|
+
readonly isBoolean: true;
|
|
345
|
+
};
|
|
346
|
+
readonly udid: {
|
|
347
|
+
readonly isString: true;
|
|
348
|
+
};
|
|
349
|
+
readonly orientation: {
|
|
350
|
+
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
351
|
+
};
|
|
352
|
+
readonly autoWebview: {
|
|
353
|
+
readonly isBoolean: true;
|
|
354
|
+
};
|
|
355
|
+
readonly noReset: {
|
|
356
|
+
readonly isBoolean: true;
|
|
357
|
+
};
|
|
358
|
+
readonly fullReset: {
|
|
359
|
+
readonly isBoolean: true;
|
|
360
|
+
};
|
|
361
|
+
readonly language: {
|
|
362
|
+
readonly isString: true;
|
|
363
|
+
};
|
|
364
|
+
readonly locale: {
|
|
365
|
+
readonly isString: true;
|
|
366
|
+
};
|
|
367
|
+
readonly eventTimings: {
|
|
368
|
+
readonly isBoolean: true;
|
|
369
|
+
};
|
|
370
|
+
readonly printPageSourceOnFindFailure: {
|
|
371
|
+
readonly isBoolean: true;
|
|
372
|
+
};
|
|
373
|
+
}, Extra extends void | import("@appium/types").StringRecord = void> = import('@appium/types').W3CCapabilities<C, Extra>;
|
|
374
|
+
export type ConstraintsToCaps<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('@appium/types').ConstraintsToCaps<C>;
|
|
375
|
+
export type Driver<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('@appium/types').Driver<C>;
|
|
376
|
+
export type DriverOpts<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('@appium/types').DriverOpts<C>;
|
|
83
377
|
import { DriverCore } from "./core";
|
|
84
|
-
/**
|
|
85
|
-
* @type {import('@appium/types').DriverClass<Driver>}
|
|
86
|
-
*/
|
|
87
|
-
export const BaseDriver: import('@appium/types').DriverClass<Driver>;
|
|
88
378
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/driver.js"],"names":[],"mappings":"AA0BA
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/driver.js"],"names":[],"mappings":"AA0BA;;;;;GAKG;AACH,2OAL+B,CAAC;IA4C9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmE;IAwBxD,6FAmBL;IAjFN;;OAEG;IACH,SAFU,CAAC,GAAG,UAAU,CAEhB;IAER;;OAEG;IACH,MAFU,aAAa,CAAC,CAAC,CAEpB;IAEL;;OAEG;IACH,cAFU,gBAAgB,CAAC,CAAC,CAEf;IAEb;;OAEG;IACH,uBAFU,CAAC,CAEW;IAEtB;;OAEG;IACH,MAFU,WAAW,CAAC,CAAC,GAAG,WAAW,wBAAwB,CAAC,CAEzD;IAEL;;;;;;;;OAQG;IACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAEC;IAQD;;;;OAIG;IACH,oBAJW,MAAM,WACF,GAAG,KACL,QAAQ,GAAG,CAAC,CAsExB;IAED;;;OAGG;IACH,8BAFW,KAAK,GAAC,OAAO,oBAAoB,EAAE,iBAAiB,iBAc9D;IAED,wCAmBC;IAED;;;;;;OAMG;IACH,qBALW,OAAO,eAAe,EAAE,YAAY,QACpC,MAAM,QACN,MAAM,QACN,MAAM,QAOhB;IAJC,yDAAoB;IACpB,+BAAsB;IACtB,+BAAsB;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