@appium/fake-driver 5.0.0 → 5.1.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/commands/alert.d.ts +16 -31
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/contexts.d.ts +18 -47
- package/build/lib/commands/contexts.d.ts.map +1 -1
- package/build/lib/commands/contexts.js +2 -3
- package/build/lib/commands/contexts.js.map +1 -1
- package/build/lib/commands/element.d.ts +21 -32
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +4 -0
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/find.d.ts +22 -32
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +5 -0
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +26 -58
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +4 -0
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/index.d.ts +85 -160
- package/build/lib/commands/index.d.ts.map +1 -1
- package/build/lib/commands/index.js +0 -1
- package/build/lib/commands/index.js.map +1 -1
- package/build/lib/driver.d.ts +35 -7
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +39 -9
- package/build/lib/driver.js.map +1 -1
- package/build/lib/index.d.ts +2 -0
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +4 -0
- package/build/lib/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/commands/contexts.js +2 -3
- package/lib/commands/element.js +4 -0
- package/lib/commands/find.js +5 -0
- package/lib/commands/general.js +6 -0
- package/lib/commands/index.js +0 -1
- package/lib/driver.js +41 -19
- package/lib/index.js +5 -0
- package/package.json +5 -4
- package/tsconfig.json +20 -0
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param {import('@appium/types').Class<import('../driver').FakeDriverCore>} Base
|
|
5
|
-
* @returns
|
|
6
5
|
*/
|
|
7
6
|
export function FakeDriverMixin(Base: import('@appium/types').Class<import('../driver').FakeDriverCore>): {
|
|
8
7
|
new (...arguments_: any[]): {
|
|
@@ -27,6 +26,9 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
27
26
|
performActions(actions: any): Promise<void>;
|
|
28
27
|
releaseActions(): Promise<void>;
|
|
29
28
|
getLog(type: any): Promise<any[]>;
|
|
29
|
+
mobileShake(): Promise<void>;
|
|
30
|
+
shook: boolean | undefined;
|
|
31
|
+
doubleClick(): Promise<void>;
|
|
30
32
|
execute(script: any, args: any): Promise<any>;
|
|
31
33
|
fakeAddition(num1: number, num2: number, num3?: number | undefined): Promise<number>;
|
|
32
34
|
assertWebviewContext(): void;
|
|
@@ -48,13 +50,15 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
48
50
|
closeWindow?(): Promise<string[]>;
|
|
49
51
|
setWindow?(handle: string): Promise<void>;
|
|
50
52
|
getWindowHandles?(): Promise<string[]>;
|
|
53
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
51
54
|
setFrame?(id: string | number | null): Promise<void>;
|
|
55
|
+
switchToParentFrame?(): Promise<void>;
|
|
52
56
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
53
57
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
54
58
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
55
59
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
56
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
57
60
|
active?(): Promise<import("@appium/types").Element>;
|
|
61
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
58
62
|
elementSelected?(elementId: string): Promise<boolean>;
|
|
59
63
|
getAttribute?(name: string, elementId: string): Promise<string | null>;
|
|
60
64
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
@@ -63,6 +67,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
63
67
|
getName?(elementId: string): Promise<string>;
|
|
64
68
|
getElementRect?(elementId: string): Promise<import("@appium/types").Rect>;
|
|
65
69
|
elementEnabled?(elementId: string): Promise<boolean>;
|
|
70
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
71
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
66
72
|
elementDisplayed?(elementId: string): Promise<boolean>;
|
|
67
73
|
click?(elementId: string): Promise<void>;
|
|
68
74
|
clear?(elementId: string): Promise<void>;
|
|
@@ -78,13 +84,12 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
78
84
|
getAlertText?(): Promise<string | null>;
|
|
79
85
|
setAlertText?(text: string): Promise<void>;
|
|
80
86
|
getElementScreenshot?(elementId: string): Promise<string>;
|
|
81
|
-
mobileShake?(): Promise<void>;
|
|
82
87
|
getDeviceTime?(format?: string | undefined): Promise<string>;
|
|
83
88
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
84
89
|
unlock?(): Promise<void>;
|
|
85
90
|
isLocked?(): Promise<boolean>;
|
|
86
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
87
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
91
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
92
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
88
93
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
89
94
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
90
95
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -106,7 +111,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
106
111
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
107
112
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
108
113
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
109
|
-
queryAppState?(appId: string): Promise<
|
|
114
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
110
115
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
111
116
|
isKeyboardShown?(): Promise<boolean>;
|
|
112
117
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -136,9 +141,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
136
141
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
137
142
|
getLocationInView?(elementId: string): Promise<import("@appium/types").Position>;
|
|
138
143
|
getSize?(elementId: string): Promise<import("@appium/types").Size>;
|
|
139
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
140
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
141
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
142
144
|
equalsElement?(elementId: string, otherElementId: string): Promise<boolean>;
|
|
143
145
|
submit?(elementId: string): Promise<void>;
|
|
144
146
|
availableIMEEngines?(): Promise<string[]>;
|
|
@@ -150,7 +152,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
150
152
|
buttonDown?(button?: number | undefined): Promise<void>;
|
|
151
153
|
buttonUp?(button?: number | undefined): Promise<void>;
|
|
152
154
|
clickCurrent?(button?: number | undefined): Promise<void>;
|
|
153
|
-
doubleClick?(): Promise<void>;
|
|
154
155
|
touchDown?(x: number, y: number): Promise<void>;
|
|
155
156
|
touchUp?(x: number, y: number): Promise<void>;
|
|
156
157
|
touchMove?(x: number, y: number): Promise<void>;
|
|
@@ -167,13 +168,13 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
167
168
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
168
169
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
169
170
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
170
|
-
addVirtualAuthenticator?(protocol:
|
|
171
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
172
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
171
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
172
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
173
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
173
174
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
174
175
|
removeAllAuthCredentials?(): Promise<void>;
|
|
175
|
-
removeAuthCredential?(): Promise<void>;
|
|
176
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
176
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
177
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
177
178
|
proxyCommand?<T = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T>;
|
|
178
179
|
cliArgs: import("@appium/types").StringRecord;
|
|
179
180
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -207,24 +208,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
207
208
|
readonly isBoolean: true;
|
|
208
209
|
};
|
|
209
210
|
};
|
|
210
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
211
|
-
readonly app: {
|
|
212
|
-
readonly presence: true;
|
|
213
|
-
readonly isString: true;
|
|
214
|
-
};
|
|
215
|
-
readonly uniqueApp: {
|
|
216
|
-
readonly isBoolean: true;
|
|
217
|
-
};
|
|
218
|
-
}> & void>): boolean;
|
|
219
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
220
|
-
readonly app: {
|
|
221
|
-
readonly presence: true;
|
|
222
|
-
readonly isString: true;
|
|
223
|
-
};
|
|
224
|
-
readonly uniqueApp: {
|
|
225
|
-
readonly isBoolean: true;
|
|
226
|
-
};
|
|
227
|
-
}> & void>): void;
|
|
228
211
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
229
212
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
230
213
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -242,6 +225,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
242
225
|
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
243
226
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
244
227
|
findElementsFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element[]>;
|
|
228
|
+
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
229
|
+
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
245
230
|
findElOrEls<Mult extends boolean>(strategy: string, selector: string, mult: Mult, context?: any): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
246
231
|
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>;
|
|
247
232
|
updateSettings: (settings: import("@appium/types").StringRecord) => Promise<void>;
|
|
@@ -279,7 +264,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
279
264
|
readonly uniqueApp: {
|
|
280
265
|
readonly isBoolean: true;
|
|
281
266
|
};
|
|
282
|
-
}, void> | undefined,
|
|
267
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
283
268
|
readonly app: {
|
|
284
269
|
readonly presence: true;
|
|
285
270
|
readonly isString: true;
|
|
@@ -336,7 +321,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
336
321
|
ELEMENT: string;
|
|
337
322
|
};
|
|
338
323
|
findElOrEls<Mult_2 extends boolean, Ctx = any>(strategy: string, selector: string, mult: Mult_2, context?: Ctx | undefined): Promise<Mult_2 extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
339
|
-
findElement(strategy:
|
|
324
|
+
findElement(strategy: string, selector: string): Promise<import("@appium/types").Element>;
|
|
340
325
|
findElements(strategy: any, selector: any): Promise<import("@appium/types").Element[]>;
|
|
341
326
|
findElementFromElement(strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element>;
|
|
342
327
|
findElementsFromElement(strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element[]>;
|
|
@@ -362,14 +347,16 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
362
347
|
closeWindow?(): Promise<string[]>;
|
|
363
348
|
setWindow?(handle: string): Promise<void>;
|
|
364
349
|
getWindowHandles?(): Promise<string[]>;
|
|
350
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
365
351
|
setFrame?(id: string | number | null): Promise<void>;
|
|
352
|
+
switchToParentFrame?(): Promise<void>;
|
|
366
353
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
367
354
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
368
355
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
369
356
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
370
357
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
371
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
372
358
|
active?(): Promise<import("@appium/types").Element>;
|
|
359
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
373
360
|
elementSelected?(elementId: string): Promise<boolean>;
|
|
374
361
|
getAttribute?(name: string, elementId: string): Promise<string | null>;
|
|
375
362
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
@@ -378,6 +365,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
378
365
|
getName?(elementId: string): Promise<string>;
|
|
379
366
|
getElementRect?(elementId: string): Promise<import("@appium/types").Rect>;
|
|
380
367
|
elementEnabled?(elementId: string): Promise<boolean>;
|
|
368
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
369
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
381
370
|
elementDisplayed?(elementId: string): Promise<boolean>;
|
|
382
371
|
click?(elementId: string): Promise<void>;
|
|
383
372
|
clear?(elementId: string): Promise<void>;
|
|
@@ -401,8 +390,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
401
390
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
402
391
|
unlock?(): Promise<void>;
|
|
403
392
|
isLocked?(): Promise<boolean>;
|
|
404
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
405
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
393
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
394
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
406
395
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
407
396
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
408
397
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -424,7 +413,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
424
413
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
425
414
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
426
415
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
427
|
-
queryAppState?(appId: string): Promise<
|
|
416
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
428
417
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
429
418
|
isKeyboardShown?(): Promise<boolean>;
|
|
430
419
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -455,9 +444,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
455
444
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
456
445
|
getLocationInView?(elementId: string): Promise<import("@appium/types").Position>;
|
|
457
446
|
getSize?(elementId: string): Promise<import("@appium/types").Size>;
|
|
458
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
459
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
460
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
461
447
|
equalsElement?(elementId: string, otherElementId: string): Promise<boolean>;
|
|
462
448
|
submit?(elementId: string): Promise<void>;
|
|
463
449
|
keys?(value: string[]): Promise<void>;
|
|
@@ -491,13 +477,13 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
491
477
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
492
478
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
493
479
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
494
|
-
addVirtualAuthenticator?(protocol:
|
|
495
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
496
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
480
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
481
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
482
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
497
483
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
498
484
|
removeAllAuthCredentials?(): Promise<void>;
|
|
499
|
-
removeAuthCredential?(): Promise<void>;
|
|
500
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
485
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
486
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
501
487
|
proxyCommand?<T = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T>;
|
|
502
488
|
cliArgs: import("@appium/types").StringRecord;
|
|
503
489
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -531,24 +517,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
531
517
|
readonly isBoolean: true;
|
|
532
518
|
};
|
|
533
519
|
};
|
|
534
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
535
|
-
readonly app: {
|
|
536
|
-
readonly presence: true;
|
|
537
|
-
readonly isString: true;
|
|
538
|
-
};
|
|
539
|
-
readonly uniqueApp: {
|
|
540
|
-
readonly isBoolean: true;
|
|
541
|
-
};
|
|
542
|
-
}> & void>): boolean;
|
|
543
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
544
|
-
readonly app: {
|
|
545
|
-
readonly presence: true;
|
|
546
|
-
readonly isString: true;
|
|
547
|
-
};
|
|
548
|
-
readonly uniqueApp: {
|
|
549
|
-
readonly isBoolean: true;
|
|
550
|
-
};
|
|
551
|
-
}> & void>): void;
|
|
552
520
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
553
521
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
554
522
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -563,6 +531,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
563
531
|
}>>;
|
|
564
532
|
getLogTypes(): Promise<string[]>;
|
|
565
533
|
getLog(logType: string): Promise<unknown[]>;
|
|
534
|
+
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
535
|
+
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
566
536
|
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>;
|
|
567
537
|
getPageSource(): Promise<string>;
|
|
568
538
|
updateSettings: (settings: import("@appium/types").StringRecord) => Promise<void>;
|
|
@@ -600,7 +570,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
600
570
|
readonly uniqueApp: {
|
|
601
571
|
readonly isBoolean: true;
|
|
602
572
|
};
|
|
603
|
-
}, void> | undefined,
|
|
573
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
604
574
|
readonly app: {
|
|
605
575
|
readonly presence: true;
|
|
606
576
|
readonly isString: true;
|
|
@@ -659,7 +629,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
659
629
|
setValue(keys: any, elementId: any): Promise<void>;
|
|
660
630
|
getText(elementId: any): Promise<any>;
|
|
661
631
|
clear(elementId: any): Promise<void>;
|
|
662
|
-
click(elementId:
|
|
632
|
+
click(elementId: string): Promise<void>;
|
|
663
633
|
focusedElId: string;
|
|
664
634
|
getAttribute(attr: any, elementId: any): Promise<any>;
|
|
665
635
|
getElementRect(elementId: any): any;
|
|
@@ -686,15 +656,19 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
686
656
|
closeWindow?(): Promise<string[]>;
|
|
687
657
|
setWindow?(handle: string): Promise<void>;
|
|
688
658
|
getWindowHandles?(): Promise<string[]>;
|
|
659
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
689
660
|
setFrame?(id: string | number | null): Promise<void>;
|
|
661
|
+
switchToParentFrame?(): Promise<void>;
|
|
690
662
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
691
663
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
692
664
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
693
665
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
694
666
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
695
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
696
667
|
active?(): Promise<import("@appium/types").Element>;
|
|
668
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
697
669
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
670
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
671
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
698
672
|
execute?(script: string, args: unknown[]): Promise<unknown>;
|
|
699
673
|
executeAsync?(script: string, args: unknown[]): Promise<unknown>;
|
|
700
674
|
getCookies?(): Promise<import("@appium/types").Cookie[]>;
|
|
@@ -715,8 +689,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
715
689
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
716
690
|
unlock?(): Promise<void>;
|
|
717
691
|
isLocked?(): Promise<boolean>;
|
|
718
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
719
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
692
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
693
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
720
694
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
721
695
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
722
696
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -738,7 +712,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
738
712
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
739
713
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
740
714
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
741
|
-
queryAppState?(appId: string): Promise<
|
|
715
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
742
716
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
743
717
|
isKeyboardShown?(): Promise<boolean>;
|
|
744
718
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -767,9 +741,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
767
741
|
asyncScriptTimeout?(ms: number): Promise<void>;
|
|
768
742
|
getWindowSize?(): Promise<import("@appium/types").Size>;
|
|
769
743
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
770
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
771
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
772
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
773
744
|
submit?(elementId: string): Promise<void>;
|
|
774
745
|
keys?(value: string[]): Promise<void>;
|
|
775
746
|
availableIMEEngines?(): Promise<string[]>;
|
|
@@ -802,13 +773,13 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
802
773
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
803
774
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
804
775
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
805
|
-
addVirtualAuthenticator?(protocol:
|
|
806
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
807
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
776
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
777
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
778
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
808
779
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
809
780
|
removeAllAuthCredentials?(): Promise<void>;
|
|
810
|
-
removeAuthCredential?(): Promise<void>;
|
|
811
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
781
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
782
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
812
783
|
proxyCommand?<T = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T>;
|
|
813
784
|
cliArgs: import("@appium/types").StringRecord;
|
|
814
785
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -842,24 +813,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
842
813
|
readonly isBoolean: true;
|
|
843
814
|
};
|
|
844
815
|
};
|
|
845
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
846
|
-
readonly app: {
|
|
847
|
-
readonly presence: true;
|
|
848
|
-
readonly isString: true;
|
|
849
|
-
};
|
|
850
|
-
readonly uniqueApp: {
|
|
851
|
-
readonly isBoolean: true;
|
|
852
|
-
};
|
|
853
|
-
}> & void>): boolean;
|
|
854
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
855
|
-
readonly app: {
|
|
856
|
-
readonly presence: true;
|
|
857
|
-
readonly isString: true;
|
|
858
|
-
};
|
|
859
|
-
readonly uniqueApp: {
|
|
860
|
-
readonly isBoolean: true;
|
|
861
|
-
};
|
|
862
|
-
}> & void>): void;
|
|
863
816
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
864
817
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
865
818
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -878,6 +831,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
878
831
|
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
879
832
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
880
833
|
findElementsFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element[]>;
|
|
834
|
+
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
835
|
+
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
881
836
|
findElOrEls<Mult extends boolean>(strategy: string, selector: string, mult: Mult, context?: any): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
882
837
|
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>;
|
|
883
838
|
getPageSource(): Promise<string>;
|
|
@@ -916,7 +871,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
916
871
|
readonly uniqueApp: {
|
|
917
872
|
readonly isBoolean: true;
|
|
918
873
|
};
|
|
919
|
-
}, void> | undefined,
|
|
874
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
920
875
|
readonly app: {
|
|
921
876
|
readonly presence: true;
|
|
922
877
|
readonly isString: true;
|
|
@@ -992,14 +947,16 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
992
947
|
closeWindow?(): Promise<string[]>;
|
|
993
948
|
setWindow?(handle: string): Promise<void>;
|
|
994
949
|
getWindowHandles?(): Promise<string[]>;
|
|
950
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
995
951
|
setFrame?(id: string | number | null): Promise<void>;
|
|
952
|
+
switchToParentFrame?(): Promise<void>;
|
|
996
953
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
997
954
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
998
955
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
999
956
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
1000
957
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
1001
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
1002
958
|
active?(): Promise<import("@appium/types").Element>;
|
|
959
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
1003
960
|
elementSelected?(elementId: string): Promise<boolean>;
|
|
1004
961
|
getAttribute?(name: string, elementId: string): Promise<string | null>;
|
|
1005
962
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
@@ -1008,6 +965,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1008
965
|
getName?(elementId: string): Promise<string>;
|
|
1009
966
|
getElementRect?(elementId: string): Promise<import("@appium/types").Rect>;
|
|
1010
967
|
elementEnabled?(elementId: string): Promise<boolean>;
|
|
968
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
969
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
1011
970
|
elementDisplayed?(elementId: string): Promise<boolean>;
|
|
1012
971
|
click?(elementId: string): Promise<void>;
|
|
1013
972
|
clear?(elementId: string): Promise<void>;
|
|
@@ -1028,8 +987,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1028
987
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
1029
988
|
unlock?(): Promise<void>;
|
|
1030
989
|
isLocked?(): Promise<boolean>;
|
|
1031
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
1032
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
990
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
991
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
1033
992
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
1034
993
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
1035
994
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -1051,7 +1010,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1051
1010
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
1052
1011
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
1053
1012
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
1054
|
-
queryAppState?(appId: string): Promise<
|
|
1013
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
1055
1014
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
1056
1015
|
isKeyboardShown?(): Promise<boolean>;
|
|
1057
1016
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -1082,9 +1041,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1082
1041
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
1083
1042
|
getLocationInView?(elementId: string): Promise<import("@appium/types").Position>;
|
|
1084
1043
|
getSize?(elementId: string): Promise<import("@appium/types").Size>;
|
|
1085
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
1086
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
1087
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
1088
1044
|
equalsElement?(elementId: string, otherElementId: string): Promise<boolean>;
|
|
1089
1045
|
submit?(elementId: string): Promise<void>;
|
|
1090
1046
|
keys?(value: string[]): Promise<void>;
|
|
@@ -1118,13 +1074,13 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1118
1074
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
1119
1075
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
1120
1076
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
1121
|
-
addVirtualAuthenticator?(protocol:
|
|
1122
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
1123
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
1077
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
1078
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
1079
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
1124
1080
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
1125
1081
|
removeAllAuthCredentials?(): Promise<void>;
|
|
1126
|
-
removeAuthCredential?(): Promise<void>;
|
|
1127
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
1082
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
1083
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
1128
1084
|
proxyCommand?<T = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T>;
|
|
1129
1085
|
cliArgs: import("@appium/types").StringRecord;
|
|
1130
1086
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -1158,24 +1114,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1158
1114
|
readonly isBoolean: true;
|
|
1159
1115
|
};
|
|
1160
1116
|
};
|
|
1161
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
1162
|
-
readonly app: {
|
|
1163
|
-
readonly presence: true;
|
|
1164
|
-
readonly isString: true;
|
|
1165
|
-
};
|
|
1166
|
-
readonly uniqueApp: {
|
|
1167
|
-
readonly isBoolean: true;
|
|
1168
|
-
};
|
|
1169
|
-
}> & void>): boolean;
|
|
1170
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
1171
|
-
readonly app: {
|
|
1172
|
-
readonly presence: true;
|
|
1173
|
-
readonly isString: true;
|
|
1174
|
-
};
|
|
1175
|
-
readonly uniqueApp: {
|
|
1176
|
-
readonly isBoolean: true;
|
|
1177
|
-
};
|
|
1178
|
-
}> & void>): void;
|
|
1179
1117
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
1180
1118
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
1181
1119
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -1194,6 +1132,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1194
1132
|
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
1195
1133
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
1196
1134
|
findElementsFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element[]>;
|
|
1135
|
+
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
1136
|
+
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
1197
1137
|
findElOrEls<Mult extends boolean>(strategy: string, selector: string, mult: Mult, context?: any): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
1198
1138
|
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>;
|
|
1199
1139
|
getPageSource(): Promise<string>;
|
|
@@ -1232,7 +1172,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1232
1172
|
readonly uniqueApp: {
|
|
1233
1173
|
readonly isBoolean: true;
|
|
1234
1174
|
};
|
|
1235
|
-
}, void> | undefined,
|
|
1175
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
1236
1176
|
readonly app: {
|
|
1237
1177
|
readonly presence: true;
|
|
1238
1178
|
readonly isString: true;
|
|
@@ -1307,14 +1247,16 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1307
1247
|
closeWindow?(): Promise<string[]>;
|
|
1308
1248
|
setWindow?(handle: string): Promise<void>;
|
|
1309
1249
|
getWindowHandles?(): Promise<string[]>;
|
|
1250
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
1310
1251
|
setFrame?(id: string | number | null): Promise<void>;
|
|
1252
|
+
switchToParentFrame?(): Promise<void>;
|
|
1311
1253
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
1312
1254
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
1313
1255
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
1314
1256
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
1315
1257
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
1316
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
1317
1258
|
active?(): Promise<import("@appium/types").Element>;
|
|
1259
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
1318
1260
|
elementSelected?(elementId: string): Promise<boolean>;
|
|
1319
1261
|
getAttribute?(name: string, elementId: string): Promise<string | null>;
|
|
1320
1262
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
@@ -1323,6 +1265,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1323
1265
|
getName?(elementId: string): Promise<string>;
|
|
1324
1266
|
getElementRect?(elementId: string): Promise<import("@appium/types").Rect>;
|
|
1325
1267
|
elementEnabled?(elementId: string): Promise<boolean>;
|
|
1268
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
1269
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
1326
1270
|
elementDisplayed?(elementId: string): Promise<boolean>;
|
|
1327
1271
|
click?(elementId: string): Promise<void>;
|
|
1328
1272
|
clear?(elementId: string): Promise<void>;
|
|
@@ -1343,8 +1287,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1343
1287
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
1344
1288
|
unlock?(): Promise<void>;
|
|
1345
1289
|
isLocked?(): Promise<boolean>;
|
|
1346
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
1347
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
1290
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
1291
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
1348
1292
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
1349
1293
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
1350
1294
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -1366,7 +1310,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1366
1310
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
1367
1311
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
1368
1312
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
1369
|
-
queryAppState?(appId: string): Promise<
|
|
1313
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
1370
1314
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
1371
1315
|
isKeyboardShown?(): Promise<boolean>;
|
|
1372
1316
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -1397,9 +1341,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1397
1341
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
1398
1342
|
getLocationInView?(elementId: string): Promise<import("@appium/types").Position>;
|
|
1399
1343
|
getSize?(elementId: string): Promise<import("@appium/types").Size>;
|
|
1400
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
1401
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
1402
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
1403
1344
|
equalsElement?(elementId: string, otherElementId: string): Promise<boolean>;
|
|
1404
1345
|
submit?(elementId: string): Promise<void>;
|
|
1405
1346
|
keys?(value: string[]): Promise<void>;
|
|
@@ -1433,13 +1374,13 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1433
1374
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
1434
1375
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
1435
1376
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
1436
|
-
addVirtualAuthenticator?(protocol:
|
|
1437
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
1438
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
1377
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
1378
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
1379
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
1439
1380
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
1440
1381
|
removeAllAuthCredentials?(): Promise<void>;
|
|
1441
|
-
removeAuthCredential?(): Promise<void>;
|
|
1442
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
1382
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
1383
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
1443
1384
|
proxyCommand?<T = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T>;
|
|
1444
1385
|
cliArgs: import("@appium/types").StringRecord;
|
|
1445
1386
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -1473,24 +1414,6 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1473
1414
|
readonly isBoolean: true;
|
|
1474
1415
|
};
|
|
1475
1416
|
};
|
|
1476
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
1477
|
-
readonly app: {
|
|
1478
|
-
readonly presence: true;
|
|
1479
|
-
readonly isString: true;
|
|
1480
|
-
};
|
|
1481
|
-
readonly uniqueApp: {
|
|
1482
|
-
readonly isBoolean: true;
|
|
1483
|
-
};
|
|
1484
|
-
}> & void>): boolean;
|
|
1485
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
1486
|
-
readonly app: {
|
|
1487
|
-
readonly presence: true;
|
|
1488
|
-
readonly isString: true;
|
|
1489
|
-
};
|
|
1490
|
-
readonly uniqueApp: {
|
|
1491
|
-
readonly isBoolean: true;
|
|
1492
|
-
};
|
|
1493
|
-
}> & void>): void;
|
|
1494
1417
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
1495
1418
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
1496
1419
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -1509,6 +1432,8 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1509
1432
|
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
1510
1433
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
1511
1434
|
findElementsFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element[]>;
|
|
1435
|
+
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
1436
|
+
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
1512
1437
|
findElOrEls<Mult extends boolean>(strategy: string, selector: string, mult: Mult, context?: any): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
1513
1438
|
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>;
|
|
1514
1439
|
getPageSource(): Promise<string>;
|
|
@@ -1547,7 +1472,7 @@ export function FakeDriverMixin(Base: import('@appium/types').Class<import('../d
|
|
|
1547
1472
|
readonly uniqueApp: {
|
|
1548
1473
|
readonly isBoolean: true;
|
|
1549
1474
|
};
|
|
1550
|
-
}, void> | undefined,
|
|
1475
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
1551
1476
|
readonly app: {
|
|
1552
1477
|
readonly presence: true;
|
|
1553
1478
|
readonly isString: true;
|