@appium/fake-driver 5.1.3 → 5.1.5
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/commands/alert.d.ts +58 -310
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +58 -69
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/contexts.d.ts +81 -330
- package/build/lib/commands/contexts.d.ts.map +1 -1
- package/build/lib/commands/contexts.js +75 -84
- package/build/lib/commands/contexts.js.map +1 -1
- package/build/lib/commands/element.d.ts +146 -315
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +134 -98
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/find.d.ts +83 -327
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +93 -97
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +174 -332
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +119 -90
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/index.d.ts +5 -1523
- package/build/lib/commands/index.d.ts.map +1 -1
- package/build/lib/commands/index.js +14 -14
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/driver.d.ts +80 -15
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +74 -24
- package/build/lib/driver.js.map +1 -1
- package/build/lib/types.d.ts +1 -24
- package/build/lib/types.d.ts.map +1 -1
- package/lib/commands/alert.js +58 -67
- package/lib/commands/contexts.js +72 -81
- package/lib/commands/element.js +135 -94
- package/lib/commands/find.js +94 -98
- package/lib/commands/general.js +119 -91
- package/lib/commands/index.js +5 -13
- package/lib/driver.js +76 -20
- package/lib/types.ts +1 -29
- package/package.json +4 -3
- package/build/tsconfig.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[],"m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|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
getPageIndex?(elementId: string): Promise<string>;
|
|
176
|
-
getNetworkConnection?(): Promise<number>;
|
|
177
|
-
setNetworkConnection?(type: number): Promise<void>;
|
|
178
|
-
performTouch?(actions: unknown): Promise<void>;
|
|
179
|
-
performMultiAction?(actions: unknown, elementId: string): Promise<void>;
|
|
180
|
-
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
181
|
-
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
182
|
-
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
183
|
-
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
184
|
-
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
185
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
186
|
-
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
187
|
-
removeAllAuthCredentials?(): Promise<void>;
|
|
188
|
-
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
189
|
-
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
190
|
-
proxyCommand?<T_1 = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T_1>;
|
|
191
|
-
cliArgs: import("@appium/types").StringRecord;
|
|
192
|
-
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
193
|
-
startUnexpectedShutdown(err?: Error | undefined): Promise<void>;
|
|
194
|
-
startNewCommandTimeout(): Promise<void>;
|
|
195
|
-
reset(): Promise<void>;
|
|
196
|
-
caps?: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
197
|
-
readonly app: {
|
|
198
|
-
readonly presence: true;
|
|
199
|
-
readonly isString: true;
|
|
200
|
-
};
|
|
201
|
-
readonly uniqueApp: {
|
|
202
|
-
readonly isBoolean: true;
|
|
203
|
-
};
|
|
204
|
-
}> & void> | undefined;
|
|
205
|
-
originalCaps?: import("@appium/types").W3CCapabilities<{
|
|
206
|
-
readonly app: {
|
|
207
|
-
readonly presence: true;
|
|
208
|
-
readonly isString: true;
|
|
209
|
-
};
|
|
210
|
-
readonly uniqueApp: {
|
|
211
|
-
readonly isBoolean: true;
|
|
212
|
-
};
|
|
213
|
-
}, void> | undefined;
|
|
214
|
-
desiredCapConstraints: {
|
|
215
|
-
readonly app: {
|
|
216
|
-
readonly presence: true;
|
|
217
|
-
readonly isString: true;
|
|
218
|
-
};
|
|
219
|
-
readonly uniqueApp: {
|
|
220
|
-
readonly isBoolean: true;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
224
|
-
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
225
|
-
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
226
|
-
supportedLogTypes: Readonly<import("@appium/types").LogDefRecord<{
|
|
227
|
-
readonly app: {
|
|
228
|
-
readonly presence: true;
|
|
229
|
-
readonly isString: true;
|
|
230
|
-
};
|
|
231
|
-
readonly uniqueApp: {
|
|
232
|
-
readonly isBoolean: true;
|
|
233
|
-
};
|
|
234
|
-
}>>;
|
|
235
|
-
getLogTypes(): Promise<string[]>;
|
|
236
|
-
findElement(strategy: string, selector: string): Promise<import("@appium/types").Element>;
|
|
237
|
-
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
238
|
-
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
239
|
-
findElementsFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element[]>;
|
|
240
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
241
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
242
|
-
findElOrEls<Mult extends boolean>(strategy: string, selector: string, mult: Mult, context?: any): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
243
|
-
findElOrElsWithProcessing<Mult_1 extends boolean>(strategy: string, selector: string, mult: Mult_1, context?: any): Promise<Mult_1 extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
244
|
-
updateSettings: (settings: import("@appium/types").StringRecord) => Promise<void>;
|
|
245
|
-
getSettings(): Promise<import("@appium/types").StringRecord>;
|
|
246
|
-
timeouts(type: string, ms: string | number, script?: number | undefined, pageLoad?: number | undefined, implicit?: string | number | undefined): Promise<void>;
|
|
247
|
-
setNewCommandTimeout(ms: number): void;
|
|
248
|
-
implicitWait(ms: string | number): Promise<void>;
|
|
249
|
-
setImplicitWait(ms: number): void;
|
|
250
|
-
implicitWaitForCondition(condition: () => Promise<any>): Promise<unknown>;
|
|
251
|
-
getTimeouts(): Promise<Record<string, number>>;
|
|
252
|
-
implicitWaitW3C(ms: number): Promise<void>;
|
|
253
|
-
implicitWaitMJSONWP(ms: number): Promise<void>;
|
|
254
|
-
pageLoadTimeoutW3C(ms: number): Promise<void>;
|
|
255
|
-
pageLoadTimeoutMJSONWP(ms: number): Promise<void>;
|
|
256
|
-
scriptTimeoutW3C(ms: number): Promise<void>;
|
|
257
|
-
scriptTimeoutMJSONWP(ms: number): Promise<void>;
|
|
258
|
-
newCommandTimeout(ms: number): Promise<void>;
|
|
259
|
-
parseTimeoutArgument(ms: string | number): number;
|
|
260
|
-
logCustomEvent(vendor: string, event: string): Promise<void>;
|
|
261
|
-
getLogEvents(type?: string | string[] | undefined): Promise<import("@appium/types").EventHistory | Record<string, number>>;
|
|
262
|
-
executeMethod(script: string, args: [] | [import("@appium/types").StringRecord]): Promise<any>;
|
|
263
|
-
createSession(w3cCaps1: import("@appium/types").W3CCapabilities<{
|
|
264
|
-
readonly app: {
|
|
265
|
-
readonly presence: true;
|
|
266
|
-
readonly isString: true;
|
|
267
|
-
};
|
|
268
|
-
readonly uniqueApp: {
|
|
269
|
-
readonly isBoolean: true;
|
|
270
|
-
};
|
|
271
|
-
}, void>, w3cCaps2?: import("@appium/types").W3CCapabilities<{
|
|
272
|
-
readonly app: {
|
|
273
|
-
readonly presence: true;
|
|
274
|
-
readonly isString: true;
|
|
275
|
-
};
|
|
276
|
-
readonly uniqueApp: {
|
|
277
|
-
readonly isBoolean: true;
|
|
278
|
-
};
|
|
279
|
-
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
280
|
-
readonly app: {
|
|
281
|
-
readonly presence: true;
|
|
282
|
-
readonly isString: true;
|
|
283
|
-
};
|
|
284
|
-
readonly uniqueApp: {
|
|
285
|
-
readonly isBoolean: true;
|
|
286
|
-
};
|
|
287
|
-
}, void> | undefined, driverData?: import("@appium/types").DriverData[] | undefined): Promise<[string, any]>;
|
|
288
|
-
deleteSession(sessionId?: string | undefined, driverData?: import("@appium/types").DriverData[] | undefined): Promise<void>;
|
|
289
|
-
shouldValidateCaps: boolean;
|
|
290
|
-
sessionId: string | null;
|
|
291
|
-
opts: import("@appium/types").DriverOpts<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS>;
|
|
292
|
-
initialOpts: import("@appium/types").ServerArgs;
|
|
293
|
-
protocol?: string | undefined;
|
|
294
|
-
helpers: import("@appium/types").DriverHelpers<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS>;
|
|
295
|
-
basePath: string;
|
|
296
|
-
relaxedSecurityEnabled: boolean;
|
|
297
|
-
allowInsecure: string[];
|
|
298
|
-
denyInsecure: string[];
|
|
299
|
-
newCommandTimeoutMs: number;
|
|
300
|
-
implicitWaitMs: number;
|
|
301
|
-
locatorStrategies: string[];
|
|
302
|
-
webLocatorStrategies: string[];
|
|
303
|
-
eventEmitter: import("events");
|
|
304
|
-
settings: import("@appium/types").DeviceSettings<any>;
|
|
305
|
-
log: import("@appium/types").AppiumLogger;
|
|
306
|
-
driverData?: import("@appium/types").DriverData | undefined;
|
|
307
|
-
isCommandsQueueEnabled: boolean;
|
|
308
|
-
eventHistory: import("@appium/types").EventHistory;
|
|
309
|
-
onUnexpectedShutdown(handler: () => any): void;
|
|
310
|
-
getStatus(): Promise<any>;
|
|
311
|
-
sessionExists(sessionId: string): boolean;
|
|
312
|
-
isW3CProtocol(): boolean;
|
|
313
|
-
isMjsonwpProtocol(): boolean;
|
|
314
|
-
isFeatureEnabled(name: string): boolean;
|
|
315
|
-
assertFeatureEnabled(name: string): void;
|
|
316
|
-
validateLocatorStrategy(strategy: string, webContext?: boolean | undefined): void;
|
|
317
|
-
proxyActive(sessionId?: string | undefined): boolean;
|
|
318
|
-
getProxyAvoidList(sessionId?: string | undefined): import("@appium/types").RouteMatcher[];
|
|
319
|
-
canProxy(sessionId?: string | undefined): boolean;
|
|
320
|
-
proxyRouteIsAvoided(sessionId: string, method: string, url: string): boolean;
|
|
321
|
-
addManagedDriver(driver: import("@appium/types").Driver<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, import("@appium/types").StringRecord, any>): void;
|
|
322
|
-
getManagedDrivers(): import("@appium/types").Driver<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, import("@appium/types").StringRecord, any>[];
|
|
323
|
-
clearNewCommandTimeout(): Promise<void>;
|
|
324
|
-
logEvent(eventName: string): void;
|
|
325
|
-
driverForSession(sessionId: string): import("@appium/types").Core<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS> | null;
|
|
326
|
-
getElement(id: string): import("../fake-element").FakeElement;
|
|
327
|
-
getElements(ids: string[]): import("../fake-element").FakeElement[];
|
|
328
|
-
};
|
|
329
|
-
} & T;
|
|
330
|
-
export type FakeDriverCore = import('../driver').FakeDriverCore;
|
|
331
|
-
export type Class<T, U = {}, V = any[]> = import('@appium/types').Class<T, U, V>;
|
|
332
|
-
export type IGeneralCommands = import('../types').IGeneralCommands;
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
/**
|
|
3
|
+
* @this {FakeDriver}
|
|
4
|
+
*/
|
|
5
|
+
function title(this: import("../driver").FakeDriver): Promise<any>;
|
|
6
|
+
/**
|
|
7
|
+
* @this {FakeDriver}
|
|
8
|
+
*/
|
|
9
|
+
function title(this: import("../driver").FakeDriver): Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* @this {FakeDriver}
|
|
12
|
+
*/
|
|
13
|
+
function keys(this: import("../driver").FakeDriver, value: any): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* @this {FakeDriver}
|
|
16
|
+
*/
|
|
17
|
+
function keys(this: import("../driver").FakeDriver, value: any): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @this {FakeDriver}
|
|
20
|
+
*/
|
|
21
|
+
function setGeoLocation(this: import("../driver").FakeDriver, location: any): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* @this {FakeDriver}
|
|
24
|
+
*/
|
|
25
|
+
function setGeoLocation(this: import("../driver").FakeDriver, location: any): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* @this {FakeDriver}
|
|
28
|
+
*/
|
|
29
|
+
function getGeoLocation(this: import("../driver").FakeDriver): Promise<import("../../../types/build/lib").Location>;
|
|
30
|
+
/**
|
|
31
|
+
* @this {FakeDriver}
|
|
32
|
+
*/
|
|
33
|
+
function getGeoLocation(this: import("../driver").FakeDriver): Promise<import("../../../types/build/lib").Location>;
|
|
34
|
+
/**
|
|
35
|
+
* @this {FakeDriver}
|
|
36
|
+
*/
|
|
37
|
+
function getPageSource(this: import("../driver").FakeDriver): Promise<string>;
|
|
38
|
+
/**
|
|
39
|
+
* @this {FakeDriver}
|
|
40
|
+
*/
|
|
41
|
+
function getPageSource(this: import("../driver").FakeDriver): Promise<string>;
|
|
42
|
+
/**
|
|
43
|
+
* @this {FakeDriver}
|
|
44
|
+
*/
|
|
45
|
+
function getOrientation(this: import("../driver").FakeDriver): Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* @this {FakeDriver}
|
|
48
|
+
*/
|
|
49
|
+
function getOrientation(this: import("../driver").FakeDriver): Promise<string>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {import('../types').FakeDriverCaps['orientation']} o
|
|
53
|
+
* @this {FakeDriver}
|
|
54
|
+
*/
|
|
55
|
+
function setOrientation(this: import("../driver").FakeDriver, o: any): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {import('../types').FakeDriverCaps['orientation']} o
|
|
59
|
+
* @this {FakeDriver}
|
|
60
|
+
*/
|
|
61
|
+
function setOrientation(this: import("../driver").FakeDriver, o: any): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* @this {FakeDriver}
|
|
64
|
+
*/
|
|
65
|
+
function getScreenshot(this: import("../driver").FakeDriver): Promise<string>;
|
|
66
|
+
/**
|
|
67
|
+
* @this {FakeDriver}
|
|
68
|
+
*/
|
|
69
|
+
function getScreenshot(this: import("../driver").FakeDriver): Promise<string>;
|
|
70
|
+
/**
|
|
71
|
+
* @this {FakeDriver}
|
|
72
|
+
*/
|
|
73
|
+
function getWindowSize(this: import("../driver").FakeDriver): Promise<{
|
|
74
|
+
width: number;
|
|
75
|
+
height: number;
|
|
76
|
+
}>;
|
|
77
|
+
/**
|
|
78
|
+
* @this {FakeDriver}
|
|
79
|
+
*/
|
|
80
|
+
function getWindowSize(this: import("../driver").FakeDriver): Promise<{
|
|
81
|
+
width: number;
|
|
82
|
+
height: number;
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* @this {FakeDriver}
|
|
86
|
+
*/
|
|
87
|
+
function getWindowRect(this: import("../driver").FakeDriver): Promise<{
|
|
88
|
+
width: number;
|
|
89
|
+
height: number;
|
|
90
|
+
x: number;
|
|
91
|
+
y: number;
|
|
92
|
+
}>;
|
|
93
|
+
/**
|
|
94
|
+
* @this {FakeDriver}
|
|
95
|
+
*/
|
|
96
|
+
function getWindowRect(this: import("../driver").FakeDriver): Promise<{
|
|
97
|
+
width: number;
|
|
98
|
+
height: number;
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
}>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @this {FakeDriver}
|
|
105
|
+
*/
|
|
106
|
+
function performActions(this: import("../driver").FakeDriver, actions: any): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @this {FakeDriver}
|
|
110
|
+
*/
|
|
111
|
+
function performActions(this: import("../driver").FakeDriver, actions: any): Promise<void>;
|
|
112
|
+
/**
|
|
113
|
+
* @this {FakeDriver}
|
|
114
|
+
*/
|
|
115
|
+
function releaseActions(this: import("../driver").FakeDriver): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* @this {FakeDriver}
|
|
118
|
+
*/
|
|
119
|
+
function releaseActions(this: import("../driver").FakeDriver): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* @this {FakeDriver}
|
|
122
|
+
*/
|
|
123
|
+
function getLog(this: import("../driver").FakeDriver, type: any): Promise<any[]>;
|
|
124
|
+
/**
|
|
125
|
+
* @this {FakeDriver}
|
|
126
|
+
*/
|
|
127
|
+
function getLog(this: import("../driver").FakeDriver, type: any): Promise<any[]>;
|
|
128
|
+
/**
|
|
129
|
+
* @this {FakeDriver}
|
|
130
|
+
*/
|
|
131
|
+
function mobileShake(this: import("../driver").FakeDriver): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* @this {FakeDriver}
|
|
134
|
+
*/
|
|
135
|
+
function mobileShake(this: import("../driver").FakeDriver): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* @this {FakeDriver}
|
|
138
|
+
*/
|
|
139
|
+
function doubleClick(this: import("../driver").FakeDriver): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* @this {FakeDriver}
|
|
142
|
+
*/
|
|
143
|
+
function doubleClick(this: import("../driver").FakeDriver): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* @this {FakeDriver}
|
|
146
|
+
*/
|
|
147
|
+
function execute(this: import("../driver").FakeDriver, script: any, args: any): Promise<any>;
|
|
148
|
+
/**
|
|
149
|
+
* @this {FakeDriver}
|
|
150
|
+
*/
|
|
151
|
+
function execute(this: import("../driver").FakeDriver, script: any, args: any): Promise<any>;
|
|
152
|
+
/**
|
|
153
|
+
* Add two or maybe even three numbers
|
|
154
|
+
*
|
|
155
|
+
* @param {number} num1
|
|
156
|
+
* @param {number} num2
|
|
157
|
+
* @param {number} [num3]
|
|
158
|
+
* @returns {Promise<number>}
|
|
159
|
+
* @this {FakeDriver}
|
|
160
|
+
*/
|
|
161
|
+
function fakeAddition(this: import("../driver").FakeDriver, num1: number, num2: number, num3?: number | undefined): Promise<number>;
|
|
162
|
+
/**
|
|
163
|
+
* Add two or maybe even three numbers
|
|
164
|
+
*
|
|
165
|
+
* @param {number} num1
|
|
166
|
+
* @param {number} num2
|
|
167
|
+
* @param {number} [num3]
|
|
168
|
+
* @returns {Promise<number>}
|
|
169
|
+
* @this {FakeDriver}
|
|
170
|
+
*/
|
|
171
|
+
function fakeAddition(this: import("../driver").FakeDriver, num1: number, num2: number, num3?: number | undefined): Promise<number>;
|
|
172
|
+
}
|
|
173
|
+
export default _default;
|
|
174
|
+
export type FakeDriver = import('../driver').FakeDriver;
|
|
333
175
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":";IAKE;;OAEG;IACH,mEAGC;IAND;;OAEG;IACH,mEAGC;IAED;;OAEG;IACH,+EAKC;IARD;;OAEG;IACH,+EAKC;IAED;;OAEG;IACH,4FAIC;IAPD;;OAEG;IACH,4FAIC;IAED;;OAEG;IACH,oHAEC;IALD;;OAEG;IACH,oHAEC;IAED;;OAEG;IACH,8EAEC;IALD;;OAEG;IACH,8EAEC;IAED;;OAEG;IACH,+EAEC;IALD;;OAEG;IACH,+EAEC;IAED;;;;OAIG;IACH,qFAKC;IAVD;;;;OAIG;IACH,qFAKC;IAED;;OAEG;IACH,8EAEC;IALD;;OAEG;IACH,8EAEC;IAED;;OAEG;IACH;;;OAEC;IALD;;OAEG;IACH;;;OAEC;IAED;;OAEG;IACH;;;;;OAEC;IALD;;OAEG;IACH;;;;;OAEC;IAED;;;OAGG;IACH,2FAEC;IAND;;;OAGG;IACH,2FAEC;IAED;;OAEG;IACH,6EAAyB;IAHzB;;OAEG;IACH,6EAAyB;IAEzB;;OAEG;IACH,iFAOC;IAVD;;OAEG;IACH,iFAOC;IAED;;OAEG;IACH,0EAEC;IALD;;OAEG;IACH,0EAEC;IAED;;OAEG;IACH,0EAAsB;IAHtB;;OAEG;IACH,0EAAsB;IAEtB;;OAEG;IACH,6FAEC;IALD;;OAEG;IACH,6FAEC;IAED;;;;;;;;OAQG;IACH,oIAEC;IAXD;;;;;;;;OAQG;IACH,oIAEC;;;yBAIU,OAAO,WAAW,EAAE,UAAU"}
|