@appium/base-driver 8.7.3 → 9.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/lib/basedriver/capabilities.d.ts +11 -163
- package/build/lib/basedriver/capabilities.d.ts.map +1 -1
- package/build/lib/basedriver/capabilities.js +354 -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 +1238 -4
- package/build/lib/protocol/routes.d.ts.map +1 -1
- package/build/lib/protocol/routes.js +964 -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 +80 -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 +11 -7
- package/package.json +14 -16
|
@@ -1,59 +1,107 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindMixin = void 0;
|
|
4
|
+
/* eslint-disable no-unused-vars */
|
|
5
|
+
/* eslint-disable require-await */
|
|
6
|
+
// @ts-check
|
|
7
|
+
const protocol_1 = require("../../protocol");
|
|
8
|
+
/**
|
|
9
|
+
* @template {Constraints} C
|
|
10
|
+
* @param {import('./event').EventBase<C>} Base
|
|
11
|
+
* @returns {FindBase<C>}
|
|
12
|
+
*/
|
|
12
13
|
function FindMixin(Base) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @implements {IFindCommands}
|
|
16
|
+
*/
|
|
17
|
+
class FindCommands extends Base {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @returns {Promise<Element>}
|
|
21
|
+
*/
|
|
22
|
+
async findElement(strategy, selector) {
|
|
23
|
+
return await this.findElOrElsWithProcessing(strategy, selector, false);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @returns {Promise<Element[]>}
|
|
28
|
+
*/
|
|
29
|
+
async findElements(strategy, selector) {
|
|
30
|
+
return await this.findElOrElsWithProcessing(strategy, selector, true);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @returns {Promise<Element>}
|
|
35
|
+
*/
|
|
36
|
+
async findElementFromElement(strategy, selector, elementId) {
|
|
37
|
+
return await this.findElOrElsWithProcessing(strategy, selector, false, elementId);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @returns {Promise<Element[]>}
|
|
42
|
+
*/
|
|
43
|
+
async findElementsFromElement(strategy, selector, elementId) {
|
|
44
|
+
return await this.findElOrElsWithProcessing(strategy, selector, true, elementId);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns an object which adheres to the way the JSON Wire Protocol represents elements:
|
|
48
|
+
*
|
|
49
|
+
* Override this for your own driver!
|
|
50
|
+
* @template {boolean} Mult
|
|
51
|
+
* @template [Ctx=any]
|
|
52
|
+
* @param {string} strategy
|
|
53
|
+
* @param {string} selector
|
|
54
|
+
* @param {Mult} mult
|
|
55
|
+
* @param {Ctx} [context]
|
|
56
|
+
* @returns {Promise<Mult extends true ? Element[] : Element>}
|
|
57
|
+
*/
|
|
58
|
+
async findElOrEls(strategy, selector, mult, context) {
|
|
59
|
+
throw new protocol_1.errors.NotImplementedError('Not implemented yet for find.');
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @returns {Promise<string>}
|
|
63
|
+
*/
|
|
64
|
+
async getPageSource() {
|
|
65
|
+
throw new protocol_1.errors.NotImplementedError('Not implemented yet for find.');
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @template {boolean} Mult
|
|
69
|
+
* @template [Ctx=any]
|
|
70
|
+
* @param {string} strategy
|
|
71
|
+
* @param {string} selector
|
|
72
|
+
* @param {Mult} mult
|
|
73
|
+
* @param {Ctx} [context]
|
|
74
|
+
* @returns {Promise<Mult extends true ? Element[] : Element>}
|
|
75
|
+
*/
|
|
76
|
+
async findElOrElsWithProcessing(strategy, selector, mult, context) {
|
|
77
|
+
this.validateLocatorStrategy(strategy);
|
|
78
|
+
try {
|
|
79
|
+
return await this.findElOrEls(strategy, selector, mult, context);
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
if (this.opts.printPageSourceOnFindFailure) {
|
|
83
|
+
const src = await this.getPageSource();
|
|
84
|
+
this.log.debug(`Error finding element${mult ? 's' : ''}: ${err.message}`);
|
|
85
|
+
this.log.debug(`Page source requested through 'printPageSourceOnFindFailure':`);
|
|
86
|
+
this.log.debug(src);
|
|
87
|
+
}
|
|
88
|
+
// still want the error to occur
|
|
89
|
+
throw err;
|
|
90
|
+
}
|
|
49
91
|
}
|
|
50
|
-
|
|
51
|
-
throw err;
|
|
52
|
-
}
|
|
53
92
|
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return FindCommands;
|
|
93
|
+
return FindCommands;
|
|
58
94
|
}
|
|
59
|
-
|
|
95
|
+
exports.FindMixin = FindMixin;
|
|
96
|
+
/**
|
|
97
|
+
* @typedef {import('@appium/types').Element} Element
|
|
98
|
+
* @typedef {import('@appium/types').Constraints} Constraints
|
|
99
|
+
* @typedef {import('@appium/types').IFindCommands} IFindCommands
|
|
100
|
+
* @typedef {import('@appium/types').ITimeoutCommands} ITimeoutCommands
|
|
101
|
+
* @typedef {import('@appium/types').IEventCommands} IEventCommands
|
|
102
|
+
*/
|
|
103
|
+
/**
|
|
104
|
+
* @template {Constraints} C
|
|
105
|
+
* @typedef {import('../driver').BaseDriverBase<C, ITimeoutCommands & IEventCommands & IFindCommands>} FindBase
|
|
106
|
+
*/
|
|
107
|
+
//# sourceMappingURL=find.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","
|
|
1
|
+
{"version":3,"file":"find.js","s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C,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO;YAC/D,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;YACvC,IAAI;gBACF,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;aAClE;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,IAAI,CAAC,IAAI,CAAC,4BAA4B,EAAE;oBAC1C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;oBACvC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,wBAAwB,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;oBAC1E,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;oBAChF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACrB;gBACD,gCAAgC;gBAChC,MAAM,GAAG,CAAC;aACX;QACH,CAAC;KACF;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AArFD,8BAqFC;AAED;;;;;;GAMG;AACH;;;GAGG"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @param {BaseDriverBase} Base
|
|
5
|
-
*/
|
|
6
|
-
export function createBaseDriverClass(Base: BaseDriverBase): import("./execute").ExecuteBase;
|
|
7
|
-
export type BaseDriverBase<T = {}> = import('../driver').BaseDriverBase<T>;
|
|
1
|
+
export function createBaseDriverClass<C_1 extends Readonly<Record<string, import("@appium/types").Constraint>>>(Base: import("../driver").BaseDriverBase<C_1, {}, {}>): import("./execute").ExecuteBase<C_1>;
|
|
2
|
+
export type BaseDriverBase<C_1 extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('../driver').BaseDriverBase<C>;
|
|
3
|
+
export type Constraints = import('@appium/types').Constraints;
|
|
8
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/index.js"],"names":[],"mappings":"AAmCy3K,6MAAmB;uGAN/3K,OAAO,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;0BAIrC,OAAO,eAAe,EAAE,WAAW"}
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.createBaseDriverClass =
|
|
7
|
-
|
|
8
|
-
require("
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return WithExecuteCommands;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJjcmVhdGVCYXNlRHJpdmVyQ2xhc3MiLCJCYXNlIiwiV2l0aFRpbWVvdXRDb21tYW5kcyIsIlRpbWVvdXRNaXhpbiIsIldpdGhFdmVudENvbW1hbmRzIiwiRXZlbnRNaXhpbiIsIldpdGhGaW5kQ29tbWFuZHMiLCJGaW5kTWl4aW4iLCJXaXRoTG9nQ29tbWFuZHMiLCJMb2dNaXhpbiIsIldpdGhTZXR0aW5nc0NvbW1hbmRzIiwiU2V0dGluZ3NNaXhpbi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0EsTUFBTUksbUJBQW1CLEdBQUcsSUFBQUMscUJBQUEsRUFBYUgsbUJBQWIsQ0FBNUI7RUFDQSxPQUFPRSxtQkFBUDtBQUNEIn0=
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createBaseDriverClass = void 0;
|
|
7
|
+
// @ts-check
|
|
8
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
+
const event_1 = require("./event");
|
|
10
|
+
const find_1 = require("./find");
|
|
11
|
+
const log_1 = require("./log");
|
|
12
|
+
const session_1 = require("./session");
|
|
13
|
+
const settings_1 = require("./settings");
|
|
14
|
+
const timeout_1 = require("./timeout");
|
|
15
|
+
const execute_1 = require("./execute");
|
|
16
|
+
/**
|
|
17
|
+
* Applies all the mixins to the `BaseDriverBase` class; returns a `BaseDriver` class definition.
|
|
18
|
+
* Each mixin is applied in the order it is listed here, and each type is a union with the previous.
|
|
19
|
+
*
|
|
20
|
+
* @template {Constraints} C
|
|
21
|
+
* @param {BaseDriverBase<C>} Base
|
|
22
|
+
*/
|
|
23
|
+
exports.createBaseDriverClass = lodash_1.default.flow(timeout_1.TimeoutMixin, event_1.EventMixin, find_1.FindMixin, log_1.LogMixin, settings_1.SettingsMixin, session_1.SessionMixin, execute_1.ExecuteMixin);
|
|
24
|
+
/**
|
|
25
|
+
* @template {Constraints} C
|
|
26
|
+
* @typedef {import('../driver').BaseDriverBase<C>} BaseDriverBase
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {import('@appium/types').Constraints} Constraints
|
|
30
|
+
*/
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/index.js"],"names":[],"mappings":";;;;;;AAAA,YAAY;AACZ,oDAAuB;AACvB,mCAAmC;AACnC,iCAAiC;AACjC,+BAA+B;AAC/B,uCAAuC;AACvC,yCAAyC;AACzC,uCAAuC;AACvC,uCAAuC;AAEvC;;;;;;GAMG;AACU,QAAA,qBAAqB,GAAG,gBAAC,CAAC,IAAI,CACzC,sBAAY,EACZ,kBAAU,EACV,gBAAS,EACT,cAAQ,EACR,wBAAa,EACb,sBAAY,EACZ,sBAAY,CACb,CAAC;AAEF;;;GAGG;AAEH;;GAEG"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {FindBase} Base
|
|
4
|
-
* @returns {LogBase}
|
|
2
|
+
* @template {Constraints} C
|
|
3
|
+
* @param {import('./find').FindBase<C>} Base
|
|
4
|
+
* @returns {LogBase<C>}
|
|
5
5
|
*/
|
|
6
|
-
export function LogMixin(Base: FindBase): LogBase
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
export type LogBase = import('../driver').BaseDriverBase<import('@appium/types').
|
|
11
|
-
export type LogType<T> = import('@appium/types').LogType<T>;
|
|
6
|
+
export function LogMixin<C extends Readonly<Record<string, import("@appium/types").Constraint>>>(Base: import("./find").FindBase<C>): LogBase<C>;
|
|
7
|
+
export type Constraints = import('@appium/types').Constraints;
|
|
8
|
+
export type StringRecord = import('@appium/types').StringRecord;
|
|
9
|
+
export type ILogCommands<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('@appium/types').ILogCommands<C>;
|
|
10
|
+
export type LogBase<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('../driver').BaseDriverBase<C, import('@appium/types').ITimeoutCommands & import('@appium/types').IEventCommands & import('@appium/types').IFindCommands & ILogCommands<C>>;
|
|
12
11
|
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/log.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/log.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,iJAsCC;0BAGY,OAAO,eAAe,EAAE,WAAW;2BACnC,OAAO,eAAe,EAAE,YAAY;mGAKpC,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC;8FAKvC,OAAO,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE,OAAO,eAAe,EAAE,gBAAgB,GAAG,OAAO,eAAe,EAAE,cAAc,GAAG,OAAO,eAAe,EAAE,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC"}
|
|
@@ -1,42 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
/* eslint-disable require-await */
|
|
3
|
+
// @ts-check
|
|
4
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.LogMixin = void 0;
|
|
9
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
10
|
+
/**
|
|
11
|
+
* @template {Constraints} C
|
|
12
|
+
* @param {import('./find').FindBase<C>} Base
|
|
13
|
+
* @returns {LogBase<C>}
|
|
14
|
+
*/
|
|
14
15
|
function LogMixin(Base) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @implements {ILogCommands<C>}
|
|
18
|
+
*/
|
|
19
|
+
class LogCommands extends Base {
|
|
20
|
+
constructor(...args) {
|
|
21
|
+
super(...args);
|
|
22
|
+
this.supportedLogTypes ?? (this.supportedLogTypes = {});
|
|
23
|
+
}
|
|
24
|
+
async getLogTypes() {
|
|
25
|
+
this.log.debug('Retrieving supported log types');
|
|
26
|
+
return Object.keys(this.supportedLogTypes);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @this {import('@appium/types').Driver<C>}
|
|
30
|
+
* @param {keyof typeof this.supportedLogTypes} logType
|
|
31
|
+
* @returns {Promise<import('type-fest').AsyncReturnType<typeof this.supportedLogTypes[keyof typeof this.supportedLogTypes]['getter']>>}
|
|
32
|
+
*/
|
|
33
|
+
async getLog(logType) {
|
|
34
|
+
this.log.debug(`Retrieving '${String(logType)}' logs`);
|
|
35
|
+
if (!(logType in this.supportedLogTypes)) {
|
|
36
|
+
const logsTypesWithDescriptions = lodash_1.default.mapValues(this.supportedLogTypes, 'description');
|
|
37
|
+
throw new Error(`Unsupported log type '${String(logType)}'. ` +
|
|
38
|
+
`Supported types: ${JSON.stringify(logsTypesWithDescriptions)}`);
|
|
39
|
+
}
|
|
40
|
+
return await this.supportedLogTypes[logType].getter(this);
|
|
41
|
+
}
|
|
24
42
|
}
|
|
25
|
-
|
|
26
|
-
async getLog(logType) {
|
|
27
|
-
this.log.debug(`Retrieving '${logType}' logs`);
|
|
28
|
-
|
|
29
|
-
if (!(await this.getLogTypes()).includes(logType)) {
|
|
30
|
-
const logsTypesWithDescriptions = _lodash.default.mapValues(this.supportedLogTypes, 'description');
|
|
31
|
-
|
|
32
|
-
throw new Error(`Unsupported log type '${logType}'. ` + `Supported types: ${JSON.stringify(logsTypesWithDescriptions)}`);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return await this.supportedLogTypes[logType].getter(this);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return LogCommands;
|
|
43
|
+
return LogCommands;
|
|
41
44
|
}
|
|
42
|
-
|
|
45
|
+
exports.LogMixin = LogMixin;
|
|
46
|
+
/**
|
|
47
|
+
* @typedef {import('@appium/types').Constraints} Constraints
|
|
48
|
+
* @typedef {import('@appium/types').StringRecord} StringRecord
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* @template {Constraints} C
|
|
52
|
+
* @typedef {import('@appium/types').ILogCommands<C>} ILogCommands
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* @template {Constraints} C
|
|
56
|
+
* @typedef {import('../driver').BaseDriverBase<C, import('@appium/types').ITimeoutCommands & import('@appium/types').IEventCommands & import('@appium/types').IFindCommands & ILogCommands<C>>} LogBase
|
|
57
|
+
*/
|
|
58
|
+
//# sourceMappingURL=log.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/log.js"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,YAAY;;;;;;AAEZ,oDAAuB;AAEvB;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,IAAI;IAC3B;;OAEG;IACH,MAAM,WAAY,SAAQ,IAAI;QAI5B,YAAY,GAAG,IAAI;YACjB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YACf,IAAI,CAAC,iBAAiB,KAAtB,IAAI,CAAC,iBAAiB,GAAK,EAAE,EAAC;QAChC,CAAC;QAED,KAAK,CAAC,WAAW;YACf,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;YACjD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC7C,CAAC;QAED;;;;WAIG;QACH,KAAK,CAAC,MAAM,CAAC,OAAO;YAClB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAEvD,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,EAAE;gBACxC,MAAM,yBAAyB,GAAG,gBAAC,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;gBACrF,MAAM,IAAI,KAAK,CACb,yBAAyB,MAAM,CAAC,OAAO,CAAC,KAAK;oBAC3C,oBAAoB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,EAAE,CAClE,CAAC;aACH;YAED,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC;KACF;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAtCD,4BAsCC;AAED;;;GAGG;AAEH;;;GAGG;AAEH;;;GAGG"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
* @
|
|
2
|
+
* @template {Constraints} C
|
|
3
|
+
* @param {import('./settings').SettingsBase<C>} Base
|
|
4
|
+
* @returns {SessionBase<C>}
|
|
4
5
|
*/
|
|
5
|
-
export function SessionMixin(Base: SettingsBase): SessionBase
|
|
6
|
-
export type ISessionCommands = import('@appium/types').
|
|
6
|
+
export function SessionMixin<C extends Readonly<Record<string, import("@appium/types").Constraint>>>(Base: import("./settings").SettingsBase<C>): SessionBase<C>;
|
|
7
|
+
export type ISessionCommands = import('@appium/types').ISessionCommands;
|
|
7
8
|
export type SingularSessionData = import('@appium/types').SingularSessionData;
|
|
8
9
|
export type MultiSessionData = import('@appium/types').MultiSessionData;
|
|
9
|
-
export type
|
|
10
|
-
export type SessionBase = import('../driver').BaseDriverBase<import('@appium/types').
|
|
10
|
+
export type Constraints = import('@appium/types').Constraints;
|
|
11
|
+
export type SessionBase<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('../driver').BaseDriverBase<C, import('@appium/types').ITimeoutCommands & import('@appium/types').IEventCommands & import('@appium/types').IFindCommands & import('@appium/types').ILogCommands<C> & import('@appium/types').ISettingsCommands & ISessionCommands>;
|
|
11
12
|
//# sourceMappingURL=session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/session.js"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../lib/basedriver/commands/session.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,iKAiCC;+BAGY,OAAO,eAAe,EAAE,gBAAgB;kCACxC,OAAO,eAAe,EAAE,mBAAmB;+BAC3C,OAAO,eAAe,EAAE,gBAAgB;0BACxC,OAAO,eAAe,EAAE,WAAW;kGAKnC,OAAO,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE,OAAO,eAAe,EAAE,gBAAgB,GAAG,OAAO,eAAe,EAAE,cAAc,GAAG,OAAO,eAAe,EAAE,aAAa,GAAG,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,eAAe,EAAE,iBAAiB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,43 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SessionMixin = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @template {Constraints} C
|
|
6
|
+
* @param {import('./settings').SettingsBase<C>} Base
|
|
7
|
+
* @returns {SessionBase<C>}
|
|
8
|
+
*/
|
|
14
9
|
function SessionMixin(Base) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @implements {ISessionCommands}
|
|
12
|
+
*/
|
|
13
|
+
class SessionCommands extends Base {
|
|
14
|
+
/**
|
|
15
|
+
* @returns {Promise<MultiSessionData[]>}
|
|
16
|
+
*/
|
|
17
|
+
async getSessions() {
|
|
18
|
+
let ret = [];
|
|
19
|
+
if (this.sessionId) {
|
|
20
|
+
ret.push({
|
|
21
|
+
id: this.sessionId,
|
|
22
|
+
capabilities: this.caps,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return ret;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @returns {Promise<SingularSessionData>}
|
|
29
|
+
*/
|
|
30
|
+
async getSession() {
|
|
31
|
+
if (this.caps.eventTimings) {
|
|
32
|
+
return { ...this.caps, events: this.eventHistory };
|
|
33
|
+
}
|
|
34
|
+
return this.caps;
|
|
35
|
+
}
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return SessionCommands;
|
|
37
|
+
return SessionCommands;
|
|
42
38
|
}
|
|
43
|
-
|
|
39
|
+
exports.SessionMixin = SessionMixin;
|
|
40
|
+
/**
|
|
41
|
+
* @typedef {import('@appium/types').ISessionCommands} ISessionCommands
|
|
42
|
+
* @typedef {import('@appium/types').SingularSessionData} SingularSessionData
|
|
43
|
+
* @typedef {import('@appium/types').MultiSessionData} MultiSessionData
|
|
44
|
+
* @typedef {import('@appium/types').Constraints} Constraints
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* @template {Constraints} C
|
|
48
|
+
* @typedef {import('../driver').BaseDriverBase<C, import('@appium/types').ITimeoutCommands & import('@appium/types').IEventCommands & import('@appium/types').IFindCommands & import('@appium/types').ILogCommands<C> & import('@appium/types').ISettingsCommands & ISessionCommands>} SessionBase
|
|
49
|
+
*/
|
|
50
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../lib/basedriver/commands/session.js"],"names":[],"mappings":";;;AAKA;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B;;OAEG;IACH,MAAM,eAAgB,SAAQ,IAAI;QAChC;;WAEG;QACH,KAAK,CAAC,WAAW;YACf,IAAI,GAAG,GAAG,EAAE,CAAC;YAEb,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,GAAG,CAAC,IAAI,CAAC;oBACP,EAAE,EAAE,IAAI,CAAC,SAAS;oBAClB,YAAY,EAAE,IAAI,CAAC,IAAI;iBACxB,CAAC,CAAC;aACJ;YAED,OAAO,GAAG,CAAC;QACb,CAAC;QAED;;WAEG;QACH,KAAK,CAAC,UAAU;YACd,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;gBAC1B,OAAO,EAAC,GAAG,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAC,CAAC;aAClD;YACD,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;KACF;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAjCD,oCAiCC;AAED;;;;;GAKG;AAEH;;;GAGG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {
|
|
4
|
-
* @returns {SettingsBase}
|
|
2
|
+
* @template {Constraints} C
|
|
3
|
+
* @param {import('./log').LogBase<C>} Base
|
|
4
|
+
* @returns {SettingsBase<C>}
|
|
5
5
|
*/
|
|
6
|
-
export function SettingsMixin(Base:
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type SettingsBase = import('../driver').BaseDriverBase<import('@appium/types').
|
|
6
|
+
export function SettingsMixin<C extends Readonly<Record<string, import("@appium/types").Constraint>>>(Base: import("./log").LogBase<C>): SettingsBase<C>;
|
|
7
|
+
export type Constraints = import('@appium/types').Constraints;
|
|
8
|
+
export type ISettingsCommands = import('@appium/types').ISettingsCommands;
|
|
9
|
+
export type SettingsBase<C extends Readonly<Record<string, import("@appium/types").Constraint>>> = import('../driver').BaseDriverBase<C, import('@appium/types').ITimeoutCommands & import('@appium/types').IEventCommands & import('@appium/types').IFindCommands & import('@appium/types').ILogCommands<C> & ISettingsCommands>;
|
|
10
10
|
//# sourceMappingURL=settings.d.ts.map
|