@appium/base-driver 8.7.3 → 9.1.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/lib/basedriver/capabilities.d.ts +11 -163
- package/build/lib/basedriver/capabilities.d.ts.map +1 -1
- package/build/lib/basedriver/capabilities.js +355 -236
- package/build/lib/basedriver/capabilities.js.map +1 -1
- package/build/lib/basedriver/commands/event.d.ts +7 -6
- package/build/lib/basedriver/commands/event.d.ts.map +1 -1
- package/build/lib/basedriver/commands/event.js +55 -35
- package/build/lib/basedriver/commands/event.js.map +1 -1
- package/build/lib/basedriver/commands/execute.d.ts +7 -6
- package/build/lib/basedriver/commands/execute.d.ts.map +1 -1
- package/build/lib/basedriver/commands/execute.js +66 -58
- package/build/lib/basedriver/commands/execute.js.map +1 -1
- package/build/lib/basedriver/commands/find.d.ts +9 -7
- package/build/lib/basedriver/commands/find.d.ts.map +1 -1
- package/build/lib/basedriver/commands/find.js +102 -54
- package/build/lib/basedriver/commands/find.js.map +1 -1
- package/build/lib/basedriver/commands/index.d.ts +3 -7
- package/build/lib/basedriver/commands/index.d.ts.map +1 -1
- package/build/lib/basedriver/commands/index.js +30 -33
- package/build/lib/basedriver/commands/index.js.map +1 -1
- package/build/lib/basedriver/commands/log.d.ts +8 -9
- package/build/lib/basedriver/commands/log.d.ts.map +1 -1
- package/build/lib/basedriver/commands/log.js +54 -38
- package/build/lib/basedriver/commands/log.js.map +1 -1
- package/build/lib/basedriver/commands/session.d.ts +7 -6
- package/build/lib/basedriver/commands/session.d.ts.map +1 -1
- package/build/lib/basedriver/commands/session.js +46 -39
- package/build/lib/basedriver/commands/session.js.map +1 -1
- package/build/lib/basedriver/commands/settings.d.ts +7 -7
- package/build/lib/basedriver/commands/settings.d.ts.map +1 -1
- package/build/lib/basedriver/commands/settings.js +35 -28
- package/build/lib/basedriver/commands/settings.js.map +1 -1
- package/build/lib/basedriver/commands/timeout.d.ts +7 -5
- package/build/lib/basedriver/commands/timeout.d.ts.map +1 -1
- package/build/lib/basedriver/commands/timeout.js +144 -162
- package/build/lib/basedriver/commands/timeout.js.map +1 -1
- package/build/lib/basedriver/core.d.ts +6 -157
- package/build/lib/basedriver/core.d.ts.map +1 -1
- package/build/lib/basedriver/core.js +361 -230
- package/build/lib/basedriver/core.js.map +1 -1
- package/build/lib/basedriver/desired-caps.js +80 -110
- package/build/lib/basedriver/desired-caps.js.map +1 -1
- package/build/lib/basedriver/device-settings.js +57 -62
- package/build/lib/basedriver/device-settings.js.map +1 -1
- package/build/lib/basedriver/driver.d.ts +11 -262
- package/build/lib/basedriver/driver.d.ts.map +1 -1
- package/build/lib/basedriver/driver.js +362 -262
- package/build/lib/basedriver/driver.js.map +1 -1
- package/build/lib/basedriver/helpers.js +500 -495
- package/build/lib/basedriver/helpers.js.map +1 -1
- package/build/lib/basedriver/logger.d.ts +1 -1
- package/build/lib/basedriver/logger.d.ts.map +1 -1
- package/build/lib/basedriver/logger.js +5 -15
- package/build/lib/basedriver/logger.js.map +1 -1
- package/build/lib/constants.js +14 -14
- package/build/lib/constants.js.map +1 -1
- package/build/lib/express/crash.js +8 -15
- package/build/lib/express/crash.js.map +1 -1
- package/build/lib/express/express-logging.js +49 -59
- package/build/lib/express/express-logging.js.map +1 -1
- package/build/lib/express/idempotency.js +125 -177
- package/build/lib/express/idempotency.js.map +1 -1
- package/build/lib/express/logger.d.ts +1 -1
- package/build/lib/express/logger.d.ts.map +1 -1
- package/build/lib/express/logger.js +5 -15
- package/build/lib/express/logger.js.map +1 -1
- package/build/lib/express/middleware.js +82 -107
- package/build/lib/express/middleware.js.map +1 -1
- package/build/lib/express/server.d.ts +17 -5
- package/build/lib/express/server.d.ts.map +1 -1
- package/build/lib/express/server.js +259 -224
- package/build/lib/express/server.js.map +1 -1
- package/build/lib/express/static.js +64 -81
- package/build/lib/express/static.js.map +1 -1
- package/build/lib/express/websocket.js +115 -87
- package/build/lib/express/websocket.js.map +1 -1
- package/build/lib/helpers/capabilities.d.ts +1 -59
- package/build/lib/helpers/capabilities.d.ts.map +1 -1
- package/build/lib/helpers/capabilities.js +72 -69
- package/build/lib/helpers/capabilities.js.map +1 -1
- package/build/lib/index.js +64 -180
- package/build/lib/index.js.map +1 -1
- package/build/lib/jsonwp-proxy/protocol-converter.js +215 -227
- package/build/lib/jsonwp-proxy/protocol-converter.js.map +1 -1
- package/build/lib/jsonwp-proxy/proxy.d.ts.map +1 -1
- package/build/lib/jsonwp-proxy/proxy.js +355 -393
- package/build/lib/jsonwp-proxy/proxy.js.map +1 -1
- package/build/lib/jsonwp-status/status.js +119 -130
- package/build/lib/jsonwp-status/status.js.map +1 -1
- package/build/lib/protocol/errors.d.ts +135 -32
- package/build/lib/protocol/errors.d.ts.map +1 -1
- package/build/lib/protocol/errors.js +871 -919
- package/build/lib/protocol/errors.js.map +1 -1
- package/build/lib/protocol/helpers.js +37 -37
- package/build/lib/protocol/helpers.js.map +1 -1
- package/build/lib/protocol/index.js +22 -109
- package/build/lib/protocol/index.js.map +1 -1
- package/build/lib/protocol/protocol.js +394 -350
- package/build/lib/protocol/protocol.js.map +1 -1
- package/build/lib/protocol/routes.d.ts +1248 -4
- package/build/lib/protocol/routes.d.ts.map +1 -1
- package/build/lib/protocol/routes.js +972 -1327
- package/build/lib/protocol/routes.js.map +1 -1
- package/build/lib/protocol/validators.js +32 -39
- package/build/lib/protocol/validators.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/basedriver/capabilities.js +83 -39
- package/lib/basedriver/commands/event.js +10 -5
- package/lib/basedriver/commands/execute.js +14 -9
- package/lib/basedriver/commands/find.js +18 -12
- package/lib/basedriver/commands/index.js +21 -16
- package/lib/basedriver/commands/log.js +24 -18
- package/lib/basedriver/commands/session.js +10 -5
- package/lib/basedriver/commands/settings.js +9 -6
- package/lib/basedriver/commands/timeout.js +10 -4
- package/lib/basedriver/core.js +2 -3
- package/lib/basedriver/driver.js +12 -16
- package/lib/express/server.js +6 -3
- package/lib/protocol/errors.js +155 -44
- package/lib/protocol/routes.js +19 -7
- package/package.json +16 -18
|
@@ -1,62 +1,11 @@
|
|
|
1
1
|
export type Driver = import('@appium/types').Driver;
|
|
2
2
|
export type Constraints = import('@appium/types').Constraints;
|
|
3
|
-
export type ExecuteMethodMap = import('@appium/types').ExecuteMethodMap;
|
|
4
3
|
export type ServerArgs = import('@appium/types').ServerArgs;
|
|
5
4
|
export type EventHistory = import('@appium/types').EventHistory;
|
|
6
5
|
export type AppiumLogger = import('@appium/types').AppiumLogger;
|
|
7
6
|
export type StringRecord = import('@appium/types').StringRecord;
|
|
8
7
|
export type BaseDriverCapConstraints = import('@appium/types').BaseDriverCapConstraints;
|
|
9
|
-
export type Capabilities<C extends Readonly<Record<string, import("@appium/types").Constraint>> =
|
|
10
|
-
readonly platformName: {
|
|
11
|
-
readonly presence: true;
|
|
12
|
-
readonly isString: true;
|
|
13
|
-
};
|
|
14
|
-
readonly app: {
|
|
15
|
-
readonly isString: true;
|
|
16
|
-
};
|
|
17
|
-
readonly deviceName: {
|
|
18
|
-
readonly isString: true;
|
|
19
|
-
};
|
|
20
|
-
readonly platformVersion: {
|
|
21
|
-
readonly isString: true;
|
|
22
|
-
};
|
|
23
|
-
readonly newCommandTimeout: {
|
|
24
|
-
readonly isNumber: true;
|
|
25
|
-
};
|
|
26
|
-
readonly automationName: {
|
|
27
|
-
readonly isString: true;
|
|
28
|
-
};
|
|
29
|
-
readonly autoLaunch: {
|
|
30
|
-
readonly isBoolean: true;
|
|
31
|
-
};
|
|
32
|
-
readonly udid: {
|
|
33
|
-
readonly isString: true;
|
|
34
|
-
};
|
|
35
|
-
readonly orientation: {
|
|
36
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
37
|
-
};
|
|
38
|
-
readonly autoWebview: {
|
|
39
|
-
readonly isBoolean: true;
|
|
40
|
-
};
|
|
41
|
-
readonly noReset: {
|
|
42
|
-
readonly isBoolean: true;
|
|
43
|
-
};
|
|
44
|
-
readonly fullReset: {
|
|
45
|
-
readonly isBoolean: true;
|
|
46
|
-
};
|
|
47
|
-
readonly language: {
|
|
48
|
-
readonly isString: true;
|
|
49
|
-
};
|
|
50
|
-
readonly locale: {
|
|
51
|
-
readonly isString: true;
|
|
52
|
-
};
|
|
53
|
-
readonly eventTimings: {
|
|
54
|
-
readonly isBoolean: true;
|
|
55
|
-
};
|
|
56
|
-
readonly printPageSourceOnFindFailure: {
|
|
57
|
-
readonly isBoolean: true;
|
|
58
|
-
};
|
|
59
|
-
}, Extra extends void | import("@appium/types").StringRecord = void> = import('@appium/types').Capabilities<C, Extra>;
|
|
8
|
+
export type Capabilities<C extends Readonly<Record<string, import("@appium/types").Constraint>> = typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, Extra extends void | import("@appium/types").StringRecord = void> = import('@appium/types').Capabilities<C, Extra>;
|
|
60
9
|
export type W3CCapabilities<T extends import("@appium/types").StringRecord = {}> = import('@appium/types').W3CCapabilities<T>;
|
|
61
10
|
export type Core<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('@appium/types').Core<C>;
|
|
62
11
|
export type DriverOpts<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('@appium/types').DriverOpts<C>;
|
|
@@ -64,64 +13,14 @@ export type DriverOpts<C extends Readonly<Record<string, import("@appium/types")
|
|
|
64
13
|
* @template {Constraints} [C=BaseDriverCapConstraints]
|
|
65
14
|
* @implements {Core<C>}
|
|
66
15
|
*/
|
|
67
|
-
export class DriverCore<C extends Readonly<Record<string, import("@appium/types").Constraint>> = {
|
|
68
|
-
readonly platformName: {
|
|
69
|
-
readonly presence: true;
|
|
70
|
-
readonly isString: true;
|
|
71
|
-
};
|
|
72
|
-
readonly app: {
|
|
73
|
-
readonly isString: true;
|
|
74
|
-
};
|
|
75
|
-
readonly deviceName: {
|
|
76
|
-
readonly isString: true;
|
|
77
|
-
};
|
|
78
|
-
readonly platformVersion: {
|
|
79
|
-
readonly isString: true;
|
|
80
|
-
};
|
|
81
|
-
readonly newCommandTimeout: {
|
|
82
|
-
readonly isNumber: true;
|
|
83
|
-
};
|
|
84
|
-
readonly automationName: {
|
|
85
|
-
readonly isString: true;
|
|
86
|
-
};
|
|
87
|
-
readonly autoLaunch: {
|
|
88
|
-
readonly isBoolean: true;
|
|
89
|
-
};
|
|
90
|
-
readonly udid: {
|
|
91
|
-
readonly isString: true;
|
|
92
|
-
};
|
|
93
|
-
readonly orientation: {
|
|
94
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
95
|
-
};
|
|
96
|
-
readonly autoWebview: {
|
|
97
|
-
readonly isBoolean: true;
|
|
98
|
-
};
|
|
99
|
-
readonly noReset: {
|
|
100
|
-
readonly isBoolean: true;
|
|
101
|
-
};
|
|
102
|
-
readonly fullReset: {
|
|
103
|
-
readonly isBoolean: true;
|
|
104
|
-
};
|
|
105
|
-
readonly language: {
|
|
106
|
-
readonly isString: true;
|
|
107
|
-
};
|
|
108
|
-
readonly locale: {
|
|
109
|
-
readonly isString: true;
|
|
110
|
-
};
|
|
111
|
-
readonly eventTimings: {
|
|
112
|
-
readonly isBoolean: true;
|
|
113
|
-
};
|
|
114
|
-
readonly printPageSourceOnFindFailure: {
|
|
115
|
-
readonly isBoolean: true;
|
|
116
|
-
};
|
|
117
|
-
}> implements Core<C> {
|
|
16
|
+
export class DriverCore<C extends Readonly<Record<string, import("@appium/types").Constraint>> = typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS> implements Core<C> {
|
|
118
17
|
/**
|
|
119
18
|
* Make the basedriver version available so for any driver which inherits from this package, we
|
|
120
19
|
* know which version of basedriver it inherited from
|
|
121
20
|
*/
|
|
122
21
|
static baseVersion: any;
|
|
123
|
-
/** @type {ExecuteMethodMap} */
|
|
124
|
-
static executeMethodMap: ExecuteMethodMap
|
|
22
|
+
/** @type {import('@appium/types').ExecuteMethodMap<DriverCore>} */
|
|
23
|
+
static executeMethodMap: import('@appium/types').ExecuteMethodMap<DriverCore>;
|
|
125
24
|
/**
|
|
126
25
|
* @param {DriverOpts<C>} opts
|
|
127
26
|
* @param {boolean} [shouldValidateCaps]
|
|
@@ -212,7 +111,7 @@ export class DriverCore<C extends Readonly<Record<string, import("@appium/types"
|
|
|
212
111
|
*/
|
|
213
112
|
get driverData(): Record<string, unknown>;
|
|
214
113
|
/**
|
|
215
|
-
* This property controls the way
|
|
114
|
+
* This property controls the way the `executeCommand` method
|
|
216
115
|
* handles new driver commands received from the client.
|
|
217
116
|
* Override it for inherited classes only in special cases.
|
|
218
117
|
*
|
|
@@ -319,57 +218,7 @@ export class DriverCore<C extends Readonly<Record<string, import("@appium/types"
|
|
|
319
218
|
* @param {Driver} driver
|
|
320
219
|
*/
|
|
321
220
|
addManagedDriver(driver: Driver): void;
|
|
322
|
-
getManagedDrivers(): import("@appium/types").Driver<
|
|
323
|
-
readonly platformName: {
|
|
324
|
-
readonly presence: true;
|
|
325
|
-
readonly isString: true;
|
|
326
|
-
};
|
|
327
|
-
readonly app: {
|
|
328
|
-
readonly isString: true;
|
|
329
|
-
};
|
|
330
|
-
readonly deviceName: {
|
|
331
|
-
readonly isString: true;
|
|
332
|
-
};
|
|
333
|
-
readonly platformVersion: {
|
|
334
|
-
readonly isString: true;
|
|
335
|
-
};
|
|
336
|
-
readonly newCommandTimeout: {
|
|
337
|
-
readonly isNumber: true;
|
|
338
|
-
};
|
|
339
|
-
readonly automationName: {
|
|
340
|
-
readonly isString: true;
|
|
341
|
-
};
|
|
342
|
-
readonly autoLaunch: {
|
|
343
|
-
readonly isBoolean: true;
|
|
344
|
-
};
|
|
345
|
-
readonly udid: {
|
|
346
|
-
readonly isString: true;
|
|
347
|
-
};
|
|
348
|
-
readonly orientation: {
|
|
349
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
350
|
-
};
|
|
351
|
-
readonly autoWebview: {
|
|
352
|
-
readonly isBoolean: true;
|
|
353
|
-
};
|
|
354
|
-
readonly noReset: {
|
|
355
|
-
readonly isBoolean: true;
|
|
356
|
-
};
|
|
357
|
-
readonly fullReset: {
|
|
358
|
-
readonly isBoolean: true;
|
|
359
|
-
};
|
|
360
|
-
readonly language: {
|
|
361
|
-
readonly isString: true;
|
|
362
|
-
};
|
|
363
|
-
readonly locale: {
|
|
364
|
-
readonly isString: true;
|
|
365
|
-
};
|
|
366
|
-
readonly eventTimings: {
|
|
367
|
-
readonly isBoolean: true;
|
|
368
|
-
};
|
|
369
|
-
readonly printPageSourceOnFindFailure: {
|
|
370
|
-
readonly isBoolean: true;
|
|
371
|
-
};
|
|
372
|
-
}, import("@appium/types").StringRecord>[];
|
|
221
|
+
getManagedDrivers(): import("@appium/types").Driver<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, import("@appium/types").StringRecord, any>[];
|
|
373
222
|
clearNewCommandTimeout(): Promise<void>;
|
|
374
223
|
}
|
|
375
224
|
import { EventEmitter } from "events";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/core.js"],"names":[],"mappings":"qBAoaa,OAAO,eAAe,EAAE,MAAM;0BAC9B,OAAO,eAAe,EAAE,WAAW
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../lib/basedriver/core.js"],"names":[],"mappings":"qBAoaa,OAAO,eAAe,EAAE,MAAM;0BAC9B,OAAO,eAAe,EAAE,WAAW;yBACnC,OAAO,eAAe,EAAE,UAAU;2BAClC,OAAO,eAAe,EAAE,YAAY;2BACpC,OAAO,eAAe,EAAE,YAAY;2BACpC,OAAO,eAAe,EAAE,YAAY;uCACpC,OAAO,eAAe,EAAE,wBAAwB;mOAMhD,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;mFAI9C,OAAO,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;2FAK1C,OAAO,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC;iGAK/B,OAAO,eAAe,EAAE,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