@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
|
@@ -52,14 +52,16 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
52
52
|
closeWindow?(): Promise<string[]>;
|
|
53
53
|
setWindow?(handle: string): Promise<void>;
|
|
54
54
|
getWindowHandles?(): Promise<string[]>;
|
|
55
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
55
56
|
setFrame?(id: string | number | null): Promise<void>;
|
|
57
|
+
switchToParentFrame?(): Promise<void>;
|
|
56
58
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
57
59
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
58
60
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
59
61
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
60
62
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
61
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
62
63
|
active?(): Promise<import("@appium/types").Element>;
|
|
64
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
63
65
|
elementSelected?(elementId: string): Promise<boolean>;
|
|
64
66
|
getAttribute?(name: string, elementId: string): Promise<string | null>;
|
|
65
67
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
@@ -68,6 +70,8 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
68
70
|
getName?(elementId: string): Promise<string>;
|
|
69
71
|
getElementRect?(elementId: string): Promise<import("@appium/types").Rect>;
|
|
70
72
|
elementEnabled?(elementId: string): Promise<boolean>;
|
|
73
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
74
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
71
75
|
elementDisplayed?(elementId: string): Promise<boolean>;
|
|
72
76
|
click?(elementId: string): Promise<void>;
|
|
73
77
|
clear?(elementId: string): Promise<void>;
|
|
@@ -88,8 +92,8 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
88
92
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
89
93
|
unlock?(): Promise<void>;
|
|
90
94
|
isLocked?(): Promise<boolean>;
|
|
91
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
92
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
95
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
96
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
93
97
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
94
98
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
95
99
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -111,7 +115,7 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
111
115
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
112
116
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
113
117
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
114
|
-
queryAppState?(appId: string): Promise<
|
|
118
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
115
119
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
116
120
|
isKeyboardShown?(): Promise<boolean>;
|
|
117
121
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -142,9 +146,6 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
142
146
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
143
147
|
getLocationInView?(elementId: string): Promise<import("@appium/types").Position>;
|
|
144
148
|
getSize?(elementId: string): Promise<import("@appium/types").Size>;
|
|
145
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
146
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
147
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
148
149
|
equalsElement?(elementId: string, otherElementId: string): Promise<boolean>;
|
|
149
150
|
submit?(elementId: string): Promise<void>;
|
|
150
151
|
keys?(value: string[]): Promise<void>;
|
|
@@ -178,13 +179,13 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
178
179
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
179
180
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
180
181
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
181
|
-
addVirtualAuthenticator?(protocol:
|
|
182
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
183
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
182
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
183
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
184
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
184
185
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
185
186
|
removeAllAuthCredentials?(): Promise<void>;
|
|
186
|
-
removeAuthCredential?(): Promise<void>;
|
|
187
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
187
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
188
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
188
189
|
proxyCommand?<T_1 = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T_1>;
|
|
189
190
|
cliArgs: import("@appium/types").StringRecord;
|
|
190
191
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -218,24 +219,6 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
218
219
|
readonly isBoolean: true;
|
|
219
220
|
};
|
|
220
221
|
};
|
|
221
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
222
|
-
readonly app: {
|
|
223
|
-
readonly presence: true;
|
|
224
|
-
readonly isString: true;
|
|
225
|
-
};
|
|
226
|
-
readonly uniqueApp: {
|
|
227
|
-
readonly isBoolean: true;
|
|
228
|
-
};
|
|
229
|
-
}> & void>): boolean;
|
|
230
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
231
|
-
readonly app: {
|
|
232
|
-
readonly presence: true;
|
|
233
|
-
readonly isString: true;
|
|
234
|
-
};
|
|
235
|
-
readonly uniqueApp: {
|
|
236
|
-
readonly isBoolean: true;
|
|
237
|
-
};
|
|
238
|
-
}> & void>): void;
|
|
239
222
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
240
223
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
241
224
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -254,6 +237,8 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
254
237
|
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
255
238
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
256
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[]>;
|
|
257
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>;
|
|
258
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>;
|
|
259
244
|
getPageSource(): Promise<string>;
|
|
@@ -292,7 +277,7 @@ export function AlertMixin<T extends Class<import("../types").IContextsCommands
|
|
|
292
277
|
readonly uniqueApp: {
|
|
293
278
|
readonly isBoolean: true;
|
|
294
279
|
};
|
|
295
|
-
}, void> | undefined,
|
|
280
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
296
281
|
readonly app: {
|
|
297
282
|
readonly presence: true;
|
|
298
283
|
readonly isString: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,oJAFa;;;IAmBT;;;;OAIG;oBADU,QAAQ,MAAM,CAAC;IAO5B;;;;;OAKG;uBAFQ,MAAM,GACJ,QAAQ,IAAI,CAAC;IAW1B;;;;OAIG;uBADU,QAAQ,IAAI,CAAC;IAO1B;;;;OAIG;4BAXU,QAAQ,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,oJAFa;;;IAmBT;;;;OAIG;oBADU,QAAQ,MAAM,CAAC;IAO5B;;;;;OAKG;uBAFQ,MAAM,GACJ,QAAQ,IAAI,CAAC;IAW1B;;;;OAIG;uBADU,QAAQ,IAAI,CAAC;IAO1B;;;;OAIG;4BAXU,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA/CG,CA+DhC;6BAGY,OAAO,WAAW,EAAE,cAAc;0CAKlC,OAAO,eAAe,EAAE,KAAK,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC;6BAIpC,OAAO,UAAU,EAAE,cAAc"}
|
|
@@ -11,11 +11,6 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
11
11
|
PROXY: null;
|
|
12
12
|
};
|
|
13
13
|
assertWebviewContext(): void;
|
|
14
|
-
/**
|
|
15
|
-
* Get the current appium context
|
|
16
|
-
*
|
|
17
|
-
* @returns {Promise<string>}
|
|
18
|
-
*/
|
|
19
14
|
getCurrentContext(): Promise<string>;
|
|
20
15
|
/**
|
|
21
16
|
* Get the list of available contexts
|
|
@@ -57,13 +52,15 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
57
52
|
closeWindow?(): Promise<string[]>;
|
|
58
53
|
setWindow?(handle: string): Promise<void>;
|
|
59
54
|
getWindowHandles?(): Promise<string[]>;
|
|
55
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
56
|
+
switchToParentFrame?(): Promise<void>;
|
|
60
57
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
61
58
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
62
59
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
63
60
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
64
61
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
65
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
66
62
|
active?(): Promise<import("@appium/types").Element>;
|
|
63
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
67
64
|
elementSelected?(elementId: string): Promise<boolean>;
|
|
68
65
|
getAttribute?(name: string, elementId: string): Promise<string | null>;
|
|
69
66
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
@@ -72,6 +69,8 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
72
69
|
getName?(elementId: string): Promise<string>;
|
|
73
70
|
getElementRect?(elementId: string): Promise<import("@appium/types").Rect>;
|
|
74
71
|
elementEnabled?(elementId: string): Promise<boolean>;
|
|
72
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
73
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
75
74
|
elementDisplayed?(elementId: string): Promise<boolean>;
|
|
76
75
|
click?(elementId: string): Promise<void>;
|
|
77
76
|
clear?(elementId: string): Promise<void>;
|
|
@@ -96,8 +95,8 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
96
95
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
97
96
|
unlock?(): Promise<void>;
|
|
98
97
|
isLocked?(): Promise<boolean>;
|
|
99
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
100
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
98
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
99
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
101
100
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
102
101
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
103
102
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -119,7 +118,7 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
119
118
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
120
119
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
121
120
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
122
|
-
queryAppState?(appId: string): Promise<
|
|
121
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
123
122
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
124
123
|
isKeyboardShown?(): Promise<boolean>;
|
|
125
124
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -150,9 +149,6 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
150
149
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
151
150
|
getLocationInView?(elementId: string): Promise<import("@appium/types").Position>;
|
|
152
151
|
getSize?(elementId: string): Promise<import("@appium/types").Size>;
|
|
153
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
154
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
155
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
156
152
|
equalsElement?(elementId: string, otherElementId: string): Promise<boolean>;
|
|
157
153
|
submit?(elementId: string): Promise<void>;
|
|
158
154
|
keys?(value: string[]): Promise<void>;
|
|
@@ -183,13 +179,13 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
183
179
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
184
180
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
185
181
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
186
|
-
addVirtualAuthenticator?(protocol:
|
|
187
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
188
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
182
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
183
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
184
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
189
185
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
190
186
|
removeAllAuthCredentials?(): Promise<void>;
|
|
191
|
-
removeAuthCredential?(): Promise<void>;
|
|
192
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
187
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
188
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
193
189
|
proxyCommand?<T_1 = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T_1>;
|
|
194
190
|
cliArgs: import("@appium/types").StringRecord;
|
|
195
191
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -223,24 +219,6 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
223
219
|
readonly isBoolean: true;
|
|
224
220
|
};
|
|
225
221
|
};
|
|
226
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
227
|
-
readonly app: {
|
|
228
|
-
readonly presence: true;
|
|
229
|
-
readonly isString: true;
|
|
230
|
-
};
|
|
231
|
-
readonly uniqueApp: {
|
|
232
|
-
readonly isBoolean: true;
|
|
233
|
-
};
|
|
234
|
-
}> & void>): boolean;
|
|
235
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
236
|
-
readonly app: {
|
|
237
|
-
readonly presence: true;
|
|
238
|
-
readonly isString: true;
|
|
239
|
-
};
|
|
240
|
-
readonly uniqueApp: {
|
|
241
|
-
readonly isBoolean: true;
|
|
242
|
-
};
|
|
243
|
-
}> & void>): void;
|
|
244
222
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
245
223
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
246
224
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -259,6 +237,8 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
259
237
|
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
260
238
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
261
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[]>;
|
|
262
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>;
|
|
263
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>;
|
|
264
244
|
getPageSource(): Promise<string>;
|
|
@@ -266,11 +246,7 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
266
246
|
getSettings(): Promise<import("@appium/types").StringRecord>;
|
|
267
247
|
timeouts(type: string, ms: string | number, script?: number | undefined, pageLoad?: number | undefined, implicit?: string | number | undefined): Promise<void>;
|
|
268
248
|
setNewCommandTimeout(ms: number): void;
|
|
269
|
-
implicitWait(ms: string | number): Promise<void>;
|
|
270
|
-
* Get the current appium context
|
|
271
|
-
*
|
|
272
|
-
* @returns {Promise<string>}
|
|
273
|
-
*/
|
|
249
|
+
implicitWait(ms: string | number): Promise<void>;
|
|
274
250
|
setImplicitWait(ms: number): void;
|
|
275
251
|
implicitWaitForCondition(condition: () => Promise<any>): Promise<unknown>;
|
|
276
252
|
getTimeouts(): Promise<Record<string, number>>;
|
|
@@ -284,12 +260,7 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
284
260
|
parseTimeoutArgument(ms: string | number): number;
|
|
285
261
|
logCustomEvent(vendor: string, event: string): Promise<void>;
|
|
286
262
|
getLogEvents(type?: string | string[] | undefined): Promise<import("@appium/types").EventHistory | Record<string, number>>;
|
|
287
|
-
executeMethod(script: string, args: [] | [import("@appium/types").StringRecord]): Promise<any>;
|
|
288
|
-
* Set the active frame
|
|
289
|
-
*
|
|
290
|
-
* @param {number} frameId
|
|
291
|
-
* @returns {Promise<void>}
|
|
292
|
-
*/
|
|
263
|
+
executeMethod(script: string, args: [] | [import("@appium/types").StringRecord]): Promise<any>;
|
|
293
264
|
createSession(w3cCaps1: import("@appium/types").W3CCapabilities<{
|
|
294
265
|
readonly app: {
|
|
295
266
|
readonly presence: true;
|
|
@@ -306,7 +277,7 @@ export function ContextsMixin<T extends Class<import("../types").IFakeDriver, {}
|
|
|
306
277
|
readonly uniqueApp: {
|
|
307
278
|
readonly isBoolean: true;
|
|
308
279
|
};
|
|
309
|
-
}, void> | undefined,
|
|
280
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
310
281
|
readonly app: {
|
|
311
282
|
readonly presence: true;
|
|
312
283
|
readonly isString: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../lib/commands/contexts.js"],"names":[],"mappings":";AAGA;;;;GAIG;AACH
|
|
1
|
+
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../lib/commands/contexts.js"],"names":[],"mappings":";AAGA;;;;GAIG;AACH;;;;;;;;QA4BI;;;;WAIG;uBADU,QAAQ,MAAM,EAAE,CAAC;QAM9B;;;;;WAKG;4BAFQ,MAAM,GACJ,QAAQ,IAAI,CAAC;;;QAoB1B;;;;;WAKG;0BAFQ,MAAM,GACJ,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiB7B;6BAGY,OAAO,WAAW,EAAE,cAAc;gCAClC,OAAO,UAAU,EAAE,iBAAiB;0CAKpC,OAAO,eAAe,EAAE,KAAK,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC"}
|
|
@@ -29,9 +29,8 @@ function ContextsMixin(Base) {
|
|
|
29
29
|
throw new driver_1.errors.InvalidContextError();
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
32
|
+
// do not add a description to this method's docstring
|
|
33
|
+
/*
|
|
35
34
|
* @returns {Promise<string>}
|
|
36
35
|
*/
|
|
37
36
|
async getCurrentContext() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.js","sourceRoot":"","sources":["../../../lib/commands/contexts.js"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,0CAAqC;AAErC;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAAI;IAChC;;OAEG;IACH,MAAM,gB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AAI,CAAC,CAAC;gBACnE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;oBACjB,MAAM,IAAI,eAAM,CAAC,gBAAgB,EAAE,CAAC;iBACrC;gBACD,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;aACvC;QACH,CAAC;KACF;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAlFD,sCAkFC;AAED;;;GAGG;AAEH;;;GAGG"}
|
|
@@ -14,7 +14,11 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
14
14
|
setValue(keys: any, elementId: any): Promise<void>;
|
|
15
15
|
getText(elementId: any): Promise<any>;
|
|
16
16
|
clear(elementId: any): Promise<void>;
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* This comment should be displayed instead of the one from ExternalDriver
|
|
19
|
+
* @param {string} elementId
|
|
20
|
+
*/
|
|
21
|
+
click(elementId: string): Promise<void>;
|
|
18
22
|
focusedElId: string;
|
|
19
23
|
getAttribute(attr: any, elementId: any): Promise<any>;
|
|
20
24
|
getElementRect(elementId: any): any;
|
|
@@ -41,15 +45,19 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
41
45
|
closeWindow?(): Promise<string[]>;
|
|
42
46
|
setWindow?(handle: string): Promise<void>;
|
|
43
47
|
getWindowHandles?(): Promise<string[]>;
|
|
48
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
44
49
|
setFrame?(id: string | number | null): Promise<void>;
|
|
50
|
+
switchToParentFrame?(): Promise<void>;
|
|
45
51
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
46
52
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
47
53
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
48
54
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
49
55
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
50
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
51
56
|
active?(): Promise<import("@appium/types").Element>;
|
|
57
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
52
58
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
59
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
60
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
53
61
|
execute?(script: string, args: unknown[]): Promise<unknown>;
|
|
54
62
|
executeAsync?(script: string, args: unknown[]): Promise<unknown>;
|
|
55
63
|
getCookies?(): Promise<import("@appium/types").Cookie[]>;
|
|
@@ -70,8 +78,8 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
70
78
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
71
79
|
unlock?(): Promise<void>;
|
|
72
80
|
isLocked?(): Promise<boolean>;
|
|
73
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
74
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
81
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
82
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
75
83
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
76
84
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
77
85
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -93,7 +101,7 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
93
101
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
94
102
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
95
103
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
96
|
-
queryAppState?(appId: string): Promise<
|
|
104
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
97
105
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
98
106
|
isKeyboardShown?(): Promise<boolean>;
|
|
99
107
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -122,9 +130,6 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
122
130
|
asyncScriptTimeout?(ms: number): Promise<void>;
|
|
123
131
|
getWindowSize?(): Promise<import("@appium/types").Size>;
|
|
124
132
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
125
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
126
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
127
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
128
133
|
submit?(elementId: string): Promise<void>;
|
|
129
134
|
keys?(value: string[]): Promise<void>;
|
|
130
135
|
availableIMEEngines?(): Promise<string[]>;
|
|
@@ -157,13 +162,13 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
157
162
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
158
163
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
159
164
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
160
|
-
addVirtualAuthenticator?(protocol:
|
|
161
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
162
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
165
|
+
addVirtualAuthenticator?(protocol: "ctap/u2f" | "ctap2" | "ctap2_1", transport: string, hasResidentKey?: boolean | undefined, hasUserVerification?: boolean | undefined, isUserConsenting?: boolean | undefined, isUserVerified?: boolean | undefined): Promise<string>;
|
|
166
|
+
removeVirtualAuthenticator?(authenticatorId: string): Promise<void>;
|
|
167
|
+
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, authenticatorId: string): Promise<void>;
|
|
163
168
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
164
169
|
removeAllAuthCredentials?(): Promise<void>;
|
|
165
|
-
removeAuthCredential?(): Promise<void>;
|
|
166
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
170
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
171
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
167
172
|
proxyCommand?<T_1 = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T_1>;
|
|
168
173
|
cliArgs: import("@appium/types").StringRecord;
|
|
169
174
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -197,24 +202,6 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
197
202
|
readonly isBoolean: true;
|
|
198
203
|
};
|
|
199
204
|
};
|
|
200
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
201
|
-
readonly app: {
|
|
202
|
-
readonly presence: true;
|
|
203
|
-
readonly isString: true;
|
|
204
|
-
};
|
|
205
|
-
readonly uniqueApp: {
|
|
206
|
-
readonly isBoolean: true;
|
|
207
|
-
};
|
|
208
|
-
}> & void>): boolean;
|
|
209
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
210
|
-
readonly app: {
|
|
211
|
-
readonly presence: true;
|
|
212
|
-
readonly isString: true;
|
|
213
|
-
};
|
|
214
|
-
readonly uniqueApp: {
|
|
215
|
-
readonly isBoolean: true;
|
|
216
|
-
};
|
|
217
|
-
}> & void>): void;
|
|
218
205
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
219
206
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
220
207
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -233,6 +220,8 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
233
220
|
findElements(strategy: string, selector: string): Promise<import("@appium/types").Element[]>;
|
|
234
221
|
findElementFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element>;
|
|
235
222
|
findElementsFromElement(strategy: string, selector: string, elementId: string): Promise<import("@appium/types").Element[]>;
|
|
223
|
+
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
224
|
+
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
236
225
|
findElOrEls<Mult extends boolean>(strategy: string, selector: string, mult: Mult, context?: any): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
237
226
|
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>;
|
|
238
227
|
getPageSource(): Promise<string>;
|
|
@@ -271,7 +260,7 @@ export function ElementMixin<T extends Class<import("../types").IContextsCommand
|
|
|
271
260
|
readonly uniqueApp: {
|
|
272
261
|
readonly isBoolean: true;
|
|
273
262
|
};
|
|
274
|
-
}, void> | undefined,
|
|
263
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
275
264
|
readonly app: {
|
|
276
265
|
readonly presence: true;
|
|
277
266
|
readonly isString: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../lib/commands/element.js"],"names":[],"mappings":";AAGA;;;GAGG;AACH
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../lib/commands/element.js"],"names":[],"mappings":";AAGA;;;GAGG;AACH;;;;;;;;;;;QA2DI;;;WAGG;yBADQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyCpB;6BAGY,OAAO,WAAW,EAAE,cAAc;+BAClC,OAAO,UAAU,EAAE,gBAAgB;0CAKnC,OAAO,eAAe,EAAE,KAAK,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC"}
|
|
@@ -64,6 +64,10 @@ function ElementMixin(Base) {
|
|
|
64
64
|
async clear(elementId) {
|
|
65
65
|
await this.setValue('', elementId);
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* This comment should be displayed instead of the one from ExternalDriver
|
|
69
|
+
* @param {string} elementId
|
|
70
|
+
*/
|
|
67
71
|
async click(elementId) {
|
|
68
72
|
this.assertNoAlert();
|
|
69
73
|
let el = this.getElement(elementId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../../lib/commands/element.js"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,0CAAqC;AAErC;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B;;OAEG;IACH,MAAM,eAAgB,SAAQ,IAAI;QAAlC;;
|
|
1
|
+
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../../lib/commands/element.js"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,0CAAqC;AAErC;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAI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YACtB,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YACpC,OAAO,EAAE,CAAC,cAAc,EAAE,CAAC;QAC7B,CAAC;QACD,OAAO,CAAC,SAAS;YACf,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YACpC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC;QACtB,CAAC;QAED,aAAa,CAAC,KAAK,EAAE,KAAK;YACxB,IAAI,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACjC,IAAI,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACjC,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC;QAED,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS;YAClC,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC5B,IAAI,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YACpC,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;KAGF;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAtGD,oCAsGC;AAED;;;GAGG;AAEH;;;GAGG"}
|
|
@@ -19,7 +19,12 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
19
19
|
* @returns {Promise<Mult extends true ? Element[] : Element>}
|
|
20
20
|
*/
|
|
21
21
|
findElOrEls<Mult extends boolean, Ctx = any>(strategy: string, selector: string, mult: Mult, context?: Ctx | undefined): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* This should override whatever's in ExternalDriver
|
|
24
|
+
* @param {string} strategy Strategy
|
|
25
|
+
* @param {string} selector Selector
|
|
26
|
+
*/
|
|
27
|
+
findElement(strategy: string, selector: string): Promise<import("@appium/types").Element>;
|
|
23
28
|
findElements(strategy: any, selector: any): Promise<import("@appium/types").Element[]>;
|
|
24
29
|
findElementFromElement(strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element>;
|
|
25
30
|
findElementsFromElement(strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element[]>;
|
|
@@ -45,14 +50,16 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
45
50
|
closeWindow?(): Promise<string[]>;
|
|
46
51
|
setWindow?(handle: string): Promise<void>;
|
|
47
52
|
getWindowHandles?(): Promise<string[]>;
|
|
53
|
+
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
48
54
|
setFrame?(id: string | number | null): Promise<void>;
|
|
55
|
+
switchToParentFrame?(): Promise<void>;
|
|
49
56
|
getWindowRect?(): Promise<import("@appium/types").Rect>;
|
|
50
57
|
setWindowRect?(x: number, y: number, width: number, height: number): Promise<import("@appium/types").Rect>;
|
|
51
58
|
maximizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
52
59
|
minimizeWindow?(): Promise<import("@appium/types").Rect>;
|
|
53
60
|
fullScreenWindow?(): Promise<import("@appium/types").Rect>;
|
|
54
|
-
createNewWindow?(type?: import("@appium/types").NewWindowType | undefined): Promise<import("@appium/types").NewWindow>;
|
|
55
61
|
active?(): Promise<import("@appium/types").Element>;
|
|
62
|
+
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
56
63
|
elementSelected?(elementId: string): Promise<boolean>;
|
|
57
64
|
getAttribute?(name: string, elementId: string): Promise<string | null>;
|
|
58
65
|
getProperty?(name: string, elementId: string): Promise<string | null>;
|
|
@@ -61,6 +68,8 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
61
68
|
getName?(elementId: string): Promise<string>;
|
|
62
69
|
getElementRect?(elementId: string): Promise<import("@appium/types").Rect>;
|
|
63
70
|
elementEnabled?(elementId: string): Promise<boolean>;
|
|
71
|
+
getComputedRole?(elementId: string): Promise<string | null>;
|
|
72
|
+
getComputedLabel?(elementId: string): Promise<string | null>;
|
|
64
73
|
elementDisplayed?(elementId: string): Promise<boolean>;
|
|
65
74
|
click?(elementId: string): Promise<void>;
|
|
66
75
|
clear?(elementId: string): Promise<void>;
|
|
@@ -84,8 +93,8 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
84
93
|
lock?(seconds?: number | undefined): Promise<void>;
|
|
85
94
|
unlock?(): Promise<void>;
|
|
86
95
|
isLocked?(): Promise<boolean>;
|
|
87
|
-
startRecordingScreen?(options?: import("@appium/types").
|
|
88
|
-
stopRecordingScreen?(options?: import("@appium/types").
|
|
96
|
+
startRecordingScreen?(options?: import("@appium/types").StartScreenRecordOptions | undefined): Promise<void>;
|
|
97
|
+
stopRecordingScreen?(options?: import("@appium/types").StopScreenRecordOptions | undefined): Promise<string>;
|
|
89
98
|
getPerformanceDataTypes?(): Promise<string[]>;
|
|
90
99
|
getPerformanceData?(packageName: string, dataType: string, dataReadTimeout?: number | undefined): Promise<string[]>;
|
|
91
100
|
pressKeyCode?(keycode: number, metastate?: number | undefined, flags?: number | undefined): Promise<void>;
|
|
@@ -107,7 +116,7 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
107
116
|
removeApp?(appId: string, options?: unknown): Promise<void>;
|
|
108
117
|
terminateApp?(appId: string, options?: unknown): Promise<void>;
|
|
109
118
|
isAppInstalled?(appId: string): Promise<boolean>;
|
|
110
|
-
queryAppState?(appId: string): Promise<
|
|
119
|
+
queryAppState?(appId: string): Promise<0 | 1 | 3 | 4>;
|
|
111
120
|
hideKeyboard?(strategy?: string | undefined, key?: string | undefined, keyCode?: string | undefined, keyName?: string | undefined): Promise<void>;
|
|
112
121
|
isKeyboardShown?(): Promise<boolean>;
|
|
113
122
|
pushFile?(path: string, data: string): Promise<void>;
|
|
@@ -138,9 +147,6 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
138
147
|
getLocation?(elementId: string): Promise<import("@appium/types").Position>;
|
|
139
148
|
getLocationInView?(elementId: string): Promise<import("@appium/types").Position>;
|
|
140
149
|
getSize?(elementId: string): Promise<import("@appium/types").Size>;
|
|
141
|
-
elementShadowRoot?(elementId: string): Promise<import("@appium/types").Element>;
|
|
142
|
-
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
143
|
-
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
144
150
|
equalsElement?(elementId: string, otherElementId: string): Promise<boolean>;
|
|
145
151
|
submit?(elementId: string): Promise<void>;
|
|
146
152
|
keys?(value: string[]): Promise<void>;
|
|
@@ -174,13 +180,13 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
174
180
|
getRotation?(): Promise<import("@appium/types").Rotation>;
|
|
175
181
|
setRotation?(x: number, y: number, z: number): Promise<void>;
|
|
176
182
|
executeCdp?(cmd: string, params: unknown): Promise<unknown>;
|
|
177
|
-
addVirtualAuthenticator?(protocol:
|
|
178
|
-
removeVirtualAuthenticator?(): Promise<void>;
|
|
179
|
-
addAuthCredential?(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle
|
|
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>;
|
|
180
186
|
getAuthCredential?(): Promise<import("@appium/types").Credential[]>;
|
|
181
187
|
removeAllAuthCredentials?(): Promise<void>;
|
|
182
|
-
removeAuthCredential?(): Promise<void>;
|
|
183
|
-
setUserAuthVerified?(isUserVerified: boolean): Promise<void>;
|
|
188
|
+
removeAuthCredential?(credentialId: string, authenticatorId: string): Promise<void>;
|
|
189
|
+
setUserAuthVerified?(isUserVerified: boolean, authenticatorId: string): Promise<void>;
|
|
184
190
|
proxyCommand?<T_1 = any>(url: string, method: import("@appium/types").HTTPMethod, body?: string | undefined): Promise<T_1>;
|
|
185
191
|
cliArgs: import("@appium/types").StringRecord;
|
|
186
192
|
executeCommand(cmd: string, ...args: any[]): Promise<any>;
|
|
@@ -214,24 +220,6 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
214
220
|
readonly isBoolean: true;
|
|
215
221
|
};
|
|
216
222
|
};
|
|
217
|
-
validateDesiredCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
218
|
-
readonly app: {
|
|
219
|
-
readonly presence: true;
|
|
220
|
-
readonly isString: true;
|
|
221
|
-
};
|
|
222
|
-
readonly uniqueApp: {
|
|
223
|
-
readonly isBoolean: true;
|
|
224
|
-
};
|
|
225
|
-
}> & void>): boolean;
|
|
226
|
-
logExtraCaps(caps: Partial<import("@appium/types").ConstraintsToCaps<{
|
|
227
|
-
readonly app: {
|
|
228
|
-
readonly presence: true;
|
|
229
|
-
readonly isString: true;
|
|
230
|
-
};
|
|
231
|
-
readonly uniqueApp: {
|
|
232
|
-
readonly isBoolean: true;
|
|
233
|
-
};
|
|
234
|
-
}> & void>): void;
|
|
235
223
|
assignServer?(server: import("@appium/types").AppiumServer, host: string, port: number, path: string): void;
|
|
236
224
|
getSessions(): Promise<import("@appium/types").MultiSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>[]>;
|
|
237
225
|
getSession(): Promise<import("@appium/types").SingularSessionData<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, void>>;
|
|
@@ -246,6 +234,8 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
246
234
|
}>>;
|
|
247
235
|
getLogTypes(): Promise<string[]>;
|
|
248
236
|
getLog(logType: string): Promise<unknown[]>;
|
|
237
|
+
findElementFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element>;
|
|
238
|
+
findElementsFromShadowRoot?(strategy: string, selector: string, shadowId: string): Promise<import("@appium/types").Element[]>;
|
|
249
239
|
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>;
|
|
250
240
|
getPageSource(): Promise<string>;
|
|
251
241
|
updateSettings: (settings: import("@appium/types").StringRecord) => Promise<void>;
|
|
@@ -283,7 +273,7 @@ export function FindMixin<T extends Class<import("../types").IElementCommands, {
|
|
|
283
273
|
readonly uniqueApp: {
|
|
284
274
|
readonly isBoolean: true;
|
|
285
275
|
};
|
|
286
|
-
}, void> | undefined,
|
|
276
|
+
}, void> | undefined, w3cCaps3?: import("@appium/types").W3CCapabilities<{
|
|
287
277
|
readonly app: {
|
|
288
278
|
readonly presence: true;
|
|
289
279
|
readonly isString: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[],"mappings":";AAIA;;;GAGG;AACH;;;;;;QA0BI;;;;;;;;WAQG;+DALQ,MAAM,YACN,MAAM
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[],"mappings":";AAIA;;;GAGG;AACH;;;;;;QA0BI;;;;;;;;WAQG;+DALQ,MAAM,YACN,MAAM;QA0CjB;;;;WAIG;8BAFQ,MAAM,YACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsBpB;6BAGY,OAAO,WAAW,EAAE,cAAc;sBAClC,OAAO,eAAe,EAAE,OAAO;0CAM/B,OAAO,eAAe,EAAE,KAAK,CAAC,CAAC,EAAC,CAAC,EAAC,CAAC,CAAC;uCAKpC,OAAO,eAAe,EAAE,aAAa,CAAC,GAAG,CAAC"}
|