@swipt/api 0.1.0-nightly.38 → 0.1.0-nightly.39
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/accessibility.d.ts +7 -1
- package/accessibility.mjs +1 -0
- package/input.d.ts +0 -1
- package/package.json +1 -1
package/accessibility.d.ts
CHANGED
|
@@ -69,5 +69,11 @@ export interface FindOptions extends CallOptions {
|
|
|
69
69
|
|
|
70
70
|
export declare function snapshot(options?: SnapshotOptions): Promise<AccessibilitySnapshot>;
|
|
71
71
|
export declare function find(selector: AccessibilitySelector | readonly AccessibilitySelector[], options?: FindOptions): Promise<AccessibilityElement | null>;
|
|
72
|
-
export
|
|
72
|
+
export interface ElementOptions extends CallOptions {
|
|
73
|
+
/** Omitted or 0 tries once; a positive number or Infinity keeps checking until a tap would reach the element, and fails at the limit. */
|
|
74
|
+
readonly timeoutMs?: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export declare function tap(element: AccessibilityElement, options?: ElementOptions): Promise<void>;
|
|
78
|
+
export declare function setText(element: AccessibilityElement, text: string, options?: ElementOptions): Promise<void>;
|
|
73
79
|
export declare function perform(element: AccessibilityElement, action: AccessibilityAction | (string & {}), options?: CallOptions): Promise<void>;
|
package/accessibility.mjs
CHANGED
package/input.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { CallOptions, Point } from "./index";
|
|
|
2
2
|
|
|
3
3
|
export interface TapOptions extends CallOptions {
|
|
4
4
|
readonly count?: number;
|
|
5
|
-
readonly holdMs?: number;
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
export type KeyboardKey = "return" | "backspace" | "forwardDelete" | "tab" | "escape" | "space" | "left" | "right" | "up" | "down"
|