mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(spec): expose SelectorPath in find/findAll signatures
This commit is contained in:
1 parent
0b3141fe3f
commit
049ef80206
2 files changed
+7
-4
No files matched your search
@@ -13,6 +13,7 @@ export type {
|
||||
Point,
|
||||
PressKeyAction,
|
||||
Sampler,
|
||||
SelectorPath,
|
||||
Snapshots,
|
||||
State,
|
||||
SwipeAction,
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
export type Snapshots = Record<string, unknown>;
|
||||
export type AttrSelector = Record<string, string>;
|
||||
|
||||
export type SelectorPath = readonly AttrSelector[];
|
||||
|
||||
export interface AccessibilityElement {
|
||||
id?: string;
|
||||
text?: string;
|
||||
@@ -15,13 +17,13 @@ export interface AccessibilityElement {
|
||||
x?: number;
|
||||
y?: number;
|
||||
attrs?: Record<string, string>;
|
||||
find(selector: string | AttrSelector): AccessibilityElement | undefined;
|
||||
findAll(selector: string | AttrSelector): AccessibilityElement[];
|
||||
find(selector: string | AttrSelector | SelectorPath): AccessibilityElement | undefined;
|
||||
findAll(selector: string | AttrSelector | SelectorPath): AccessibilityElement[];
|
||||
}
|
||||
|
||||
export interface AccessibilityTree {
|
||||
find(selector: string | AttrSelector): AccessibilityElement | undefined;
|
||||
findAll(selector: string | AttrSelector): AccessibilityElement[];
|
||||
find(selector: string | AttrSelector | SelectorPath): AccessibilityElement | undefined;
|
||||
findAll(selector: string | AttrSelector | SelectorPath): AccessibilityElement[];
|
||||
}
|
||||
|
||||
export interface LogEntry {
|
||||
|
||||
Reference in new issue
Block a user