@burdenoff/ui-engine 2026.1127.3 → 2026.1127.4
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/README.md +45 -5
- package/dist/dom-runtime.iife.js +1 -1
- package/dist/dom-runtime.js +27 -532
- package/dist/drivers/dom-driver.d.ts +44 -0
- package/dist/drivers/index.d.ts +7 -0
- package/dist/drivers/snapshot-driver.d.ts +59 -0
- package/dist/drivers.d.ts +2 -0
- package/dist/drivers.js +170 -0
- package/dist/index-3f1j8386.js +334 -0
- package/dist/index-3jymbm5t.js +315 -0
- package/dist/{index-q1b0j9yr.js → index-5k26keah.js} +58 -592
- package/dist/index-77pcz6n3.js +303 -0
- package/dist/index-895kscx3.js +741 -0
- package/dist/index-ct2xctrq.js +229 -0
- package/dist/index-h88y5qgv.js +400 -0
- package/dist/{index-zwrxw3zp.js → index-pm13mvvc.js} +24 -1009
- package/dist/index-vg8r40y7.js +220 -0
- package/dist/index-ycs2bz1a.js +589 -0
- package/dist/index-zzhysbkj.js +1731 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +123 -37
- package/dist/interpret/compile.d.ts +58 -0
- package/dist/interpret/driver.d.ts +171 -0
- package/dist/interpret/errors.d.ts +194 -0
- package/dist/interpret/events.d.ts +73 -0
- package/dist/interpret/expr.d.ts +35 -0
- package/dist/interpret/index.d.ts +13 -0
- package/dist/interpret/run.d.ts +77 -0
- package/dist/interpret.d.ts +2 -0
- package/dist/interpret.js +84 -0
- package/dist/script/adapters/browser-action-contract.d.ts +5 -2
- package/dist/script/limits.d.ts +2 -0
- package/dist/script.js +44 -38
- package/dist/target/index.d.ts +1 -1
- package/dist/target/resolve.d.ts +18 -1
- package/dist/target.js +23 -19
- package/dist/testing/fake-web-driver.d.ts +28 -0
- package/dist/testing/index.d.ts +3 -2
- package/dist/testing.js +55 -0
- package/package.json +11 -3
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The run-time error codes of the UI script interpreter and their node error
|
|
3
|
+
* families (spec 05 section 10, plan P1-02).
|
|
4
|
+
*
|
|
5
|
+
* A step that fails carries one of these short codes in its events, in the
|
|
6
|
+
* step log and in the run result. The family tells the executor which typed
|
|
7
|
+
* node error to raise (P1-06, P1-07), so the node's existing `retryConfig`,
|
|
8
|
+
* `onError` and `timeout` settings apply without change (spec 03 section 6).
|
|
9
|
+
*
|
|
10
|
+
* The family of `ELEMENT_AMBIGUOUS` was open between VALIDATION (spec 05
|
|
11
|
+
* section 10) and DEPENDENCY (plan P1-02); BOFF-17109. It is DEPENDENCY:
|
|
12
|
+
* ambiguity is observed on the live page at run time, exactly like
|
|
13
|
+
* `ELEMENT_NOT_FOUND` (a script that matched one element yesterday matches
|
|
14
|
+
* two after the application changes), it is never raised before a step runs,
|
|
15
|
+
* which is what VALIDATION means for UI scripts here (`UNSUPPORTED_ON_DESK`,
|
|
16
|
+
* `INVALID_SCRIPT`), and the phase 4 healing that repairs a target applies to
|
|
17
|
+
* both codes in the same way. Either way an ambiguous target is never acted
|
|
18
|
+
* on, and the failure lists up to five candidates.
|
|
19
|
+
*/
|
|
20
|
+
/** The node error families a UI error code maps to. */
|
|
21
|
+
export declare const UI_ERROR_FAMILIES: readonly ["DEPENDENCY", "TRANSIENT", "VALIDATION", "AUTHORIZATION", "DISPATCH_FAILED", "CANCELLED"];
|
|
22
|
+
export type UiErrorFamily = (typeof UI_ERROR_FAMILIES)[number];
|
|
23
|
+
/** One error code: its family, whether it is raised before any step runs, and what it means. */
|
|
24
|
+
export interface UiErrorCodeInfo {
|
|
25
|
+
family: UiErrorFamily;
|
|
26
|
+
/** Raised before any step runs (the run emits no step events). */
|
|
27
|
+
preflight: boolean;
|
|
28
|
+
/** What the code means, for operators and documentation (English). */
|
|
29
|
+
meaning: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Every run-time error code, with its family. Spec 05 section 10 lists the
|
|
33
|
+
* first ten; the rest are the engine's own codes for web desks, and
|
|
34
|
+
* `INTERRUPTED` and `STOPPED_BY_USER` come from the contract (README section 7).
|
|
35
|
+
*/
|
|
36
|
+
export declare const UI_ERROR_CODES: {
|
|
37
|
+
readonly ELEMENT_NOT_FOUND: {
|
|
38
|
+
readonly family: "DEPENDENCY";
|
|
39
|
+
readonly preflight: false;
|
|
40
|
+
readonly meaning: "No target method found the element within the wait, or the frame chain could not be followed";
|
|
41
|
+
};
|
|
42
|
+
readonly ELEMENT_AMBIGUOUS: {
|
|
43
|
+
readonly family: "DEPENDENCY";
|
|
44
|
+
readonly preflight: false;
|
|
45
|
+
readonly meaning: "More than one element matched and the target states no rule to choose; nothing was acted on";
|
|
46
|
+
};
|
|
47
|
+
readonly ELEMENT_NOT_INTERACTABLE: {
|
|
48
|
+
readonly family: "TRANSIENT";
|
|
49
|
+
readonly preflight: false;
|
|
50
|
+
readonly meaning: "The element was found but stayed disabled, hidden, covered or off screen for the whole wait";
|
|
51
|
+
};
|
|
52
|
+
readonly WINDOW_NOT_FOUND: {
|
|
53
|
+
readonly family: "DEPENDENCY";
|
|
54
|
+
readonly preflight: false;
|
|
55
|
+
readonly meaning: "The application window or page is not open";
|
|
56
|
+
};
|
|
57
|
+
readonly APPLICATION_NOT_RESPONDING: {
|
|
58
|
+
readonly family: "TRANSIENT";
|
|
59
|
+
readonly preflight: false;
|
|
60
|
+
readonly meaning: "The application or page stopped responding";
|
|
61
|
+
};
|
|
62
|
+
readonly UNEXPECTED_WINDOW: {
|
|
63
|
+
readonly family: "DEPENDENCY";
|
|
64
|
+
readonly preflight: false;
|
|
65
|
+
readonly meaning: "A pop-up with no handler blocks the target";
|
|
66
|
+
};
|
|
67
|
+
readonly VERIFY_FAILED: {
|
|
68
|
+
readonly family: "TRANSIENT";
|
|
69
|
+
readonly preflight: false;
|
|
70
|
+
readonly meaning: "The step's expected outcome did not occur within its wait";
|
|
71
|
+
};
|
|
72
|
+
readonly DESK_UNAVAILABLE: {
|
|
73
|
+
readonly family: "DISPATCH_FAILED";
|
|
74
|
+
readonly preflight: false;
|
|
75
|
+
readonly meaning: "The desk has no usable session (no browser tab, screen locked, capability switched off)";
|
|
76
|
+
};
|
|
77
|
+
readonly ROBOT_LOST: {
|
|
78
|
+
readonly family: "TRANSIENT";
|
|
79
|
+
readonly preflight: false;
|
|
80
|
+
readonly meaning: "The desk disconnected while the script ran";
|
|
81
|
+
};
|
|
82
|
+
readonly UNSUPPORTED_ON_DESK: {
|
|
83
|
+
readonly family: "VALIDATION";
|
|
84
|
+
readonly preflight: true;
|
|
85
|
+
readonly meaning: "The desk cannot run a step, target method or option the script uses";
|
|
86
|
+
};
|
|
87
|
+
readonly NAVIGATION_TIMEOUT: {
|
|
88
|
+
readonly family: "TRANSIENT";
|
|
89
|
+
readonly preflight: false;
|
|
90
|
+
readonly meaning: "A navigation, back, or reload did not finish loading within its wait";
|
|
91
|
+
};
|
|
92
|
+
readonly NAVIGATION_FAILED: {
|
|
93
|
+
readonly family: "TRANSIENT";
|
|
94
|
+
readonly preflight: false;
|
|
95
|
+
readonly meaning: "A navigation failed: a network error, or the page could not be loaded";
|
|
96
|
+
};
|
|
97
|
+
readonly WAIT_TIMEOUT: {
|
|
98
|
+
readonly family: "TRANSIENT";
|
|
99
|
+
readonly preflight: false;
|
|
100
|
+
readonly meaning: "A wait for text, a URL, or an element to disappear did not end within its wait";
|
|
101
|
+
};
|
|
102
|
+
readonly ACTION_FAILED: {
|
|
103
|
+
readonly family: "DEPENDENCY";
|
|
104
|
+
readonly preflight: false;
|
|
105
|
+
readonly meaning: "The element was found once but the action does not apply to it (not editable, not a list, no such option, a handler cancelled the change); the desk problem is in detail.problem";
|
|
106
|
+
};
|
|
107
|
+
readonly SENSITIVE_ELEMENT: {
|
|
108
|
+
readonly family: "VALIDATION";
|
|
109
|
+
readonly preflight: false;
|
|
110
|
+
readonly meaning: "A read of a password, one-time code, card or secret field was refused by design";
|
|
111
|
+
};
|
|
112
|
+
readonly URL_NOT_ALLOWED: {
|
|
113
|
+
readonly family: "VALIDATION";
|
|
114
|
+
readonly preflight: false;
|
|
115
|
+
readonly meaning: "A navigation URL is not http or https, or the desk URL guard refused it";
|
|
116
|
+
};
|
|
117
|
+
readonly SECRET_UNAVAILABLE: {
|
|
118
|
+
readonly family: "DEPENDENCY";
|
|
119
|
+
readonly preflight: false;
|
|
120
|
+
readonly meaning: "The desk could not type a secret: the reference is missing or the page origin is not the expected one";
|
|
121
|
+
};
|
|
122
|
+
readonly LOGIN_FAILED: {
|
|
123
|
+
readonly family: "AUTHORIZATION";
|
|
124
|
+
readonly preflight: false;
|
|
125
|
+
readonly meaning: "The sign-in through the Browser Login connection did not reach its success element";
|
|
126
|
+
};
|
|
127
|
+
readonly EXPRESSION_ERROR: {
|
|
128
|
+
readonly family: "VALIDATION";
|
|
129
|
+
readonly preflight: false;
|
|
130
|
+
readonly meaning: "An expression could not be evaluated (a value of the wrong type, division by zero, a result too large)";
|
|
131
|
+
};
|
|
132
|
+
readonly INTERRUPTED: {
|
|
133
|
+
readonly family: "TRANSIENT";
|
|
134
|
+
readonly preflight: false;
|
|
135
|
+
readonly meaning: "The script was cut off (a worker restart) after some steps ran; the last completed step is reported";
|
|
136
|
+
};
|
|
137
|
+
readonly DRIVER_ERROR: {
|
|
138
|
+
readonly family: "TRANSIENT";
|
|
139
|
+
readonly preflight: false;
|
|
140
|
+
readonly meaning: "The desk failed in an unexpected way while running a step";
|
|
141
|
+
};
|
|
142
|
+
readonly INVALID_SCRIPT: {
|
|
143
|
+
readonly family: "VALIDATION";
|
|
144
|
+
readonly preflight: true;
|
|
145
|
+
readonly meaning: "The script does not parse, is not compiled (an unresolved element or a call not inlined), or a step needs a value it does not have; the parse code is in detail.engineCode";
|
|
146
|
+
};
|
|
147
|
+
readonly INVALID_INPUT: {
|
|
148
|
+
readonly family: "VALIDATION";
|
|
149
|
+
readonly preflight: true;
|
|
150
|
+
readonly meaning: "A required script input is missing, or a supplied input does not have its declared type";
|
|
151
|
+
};
|
|
152
|
+
readonly INVALID_STEP_RANGE: {
|
|
153
|
+
readonly family: "VALIDATION";
|
|
154
|
+
readonly preflight: true;
|
|
155
|
+
readonly meaning: "A step range names a step path the script does not have, ends before it starts, or never reaches its start (a block around it was disabled or ran no pass), so no step ran";
|
|
156
|
+
};
|
|
157
|
+
readonly CANCELLED: {
|
|
158
|
+
readonly family: "CANCELLED";
|
|
159
|
+
readonly preflight: false;
|
|
160
|
+
readonly meaning: "The run was cancelled; the clean-up steps ran";
|
|
161
|
+
};
|
|
162
|
+
readonly STOPPED_BY_USER: {
|
|
163
|
+
readonly family: "CANCELLED";
|
|
164
|
+
readonly preflight: false;
|
|
165
|
+
readonly meaning: "A person sent STOP to a paused TEST run; the clean-up steps ran";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export type UiErrorCode = keyof typeof UI_ERROR_CODES;
|
|
169
|
+
/** Every error code, in table order. */
|
|
170
|
+
export declare const UI_ERROR_CODE_LIST: UiErrorCode[];
|
|
171
|
+
/** Whether a value is one of the engine's error codes. */
|
|
172
|
+
export declare function isUiErrorCode(value: unknown): value is UiErrorCode;
|
|
173
|
+
/** The node error family of a code. */
|
|
174
|
+
export declare function errorFamilyOf(code: UiErrorCode): UiErrorFamily;
|
|
175
|
+
/** Whether a failure with this code may be retried by a step `retry` or a retry scope. */
|
|
176
|
+
export declare function isRetryableInScript(code: UiErrorCode): boolean;
|
|
177
|
+
/** Detail a failure carries: what was looked for and what was found. Plain JSON, never typed values or secrets. */
|
|
178
|
+
export type UiErrorDetail = Readonly<Record<string, unknown>>;
|
|
179
|
+
/** A failure raised by the interpreter, the compiler or the expression evaluator. */
|
|
180
|
+
export declare class UiRunError extends Error {
|
|
181
|
+
readonly code: UiErrorCode;
|
|
182
|
+
readonly family: UiErrorFamily;
|
|
183
|
+
readonly detail: UiErrorDetail | undefined;
|
|
184
|
+
constructor(code: UiErrorCode, message: string, detail?: UiErrorDetail);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* A failure a desk driver reports (a navigation timeout, a lost session).
|
|
188
|
+
* Anything else a driver throws becomes `DRIVER_ERROR`.
|
|
189
|
+
*/
|
|
190
|
+
export declare class UiDriverError extends Error {
|
|
191
|
+
readonly code: UiErrorCode;
|
|
192
|
+
readonly detail: UiErrorDetail | undefined;
|
|
193
|
+
constructor(code: UiErrorCode, message: string, detail?: UiErrorDetail);
|
|
194
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step events and the step log of a UI script run (plan P1-02).
|
|
3
|
+
*
|
|
4
|
+
* Events have the shape of the contract's `UiTaskEventInput` (fluidgrids-specs
|
|
5
|
+
* `product/specs/rpa/contracts/rpa-web-v1.graphql`), so a desk uploads them as
|
|
6
|
+
* they are. They never carry typed text, read values or secrets: a step's
|
|
7
|
+
* result goes to the run result only.
|
|
8
|
+
*
|
|
9
|
+
* The emitter enforces the event cap: after `maxEvents - 1` events it emits one
|
|
10
|
+
* LOG summary with `detail.truncated: true`, drops the rest, and still emits
|
|
11
|
+
* the final FINISHED event (the service keeps FINISHED past its own cap).
|
|
12
|
+
*/
|
|
13
|
+
import type { UiStepAction } from '../script/types.js';
|
|
14
|
+
import type { UiErrorCode } from './errors.js';
|
|
15
|
+
/** The event kinds (contract `UiTaskEventKind`). */
|
|
16
|
+
export declare const UI_RUN_EVENT_KINDS: readonly ["STEP_STARTED", "STEP_PASSED", "STEP_FAILED", "STEP_SKIPPED", "PAUSED", "RESUMED", "LOG", "FINISHED"];
|
|
17
|
+
export type UiRunEventKind = (typeof UI_RUN_EVENT_KINDS)[number];
|
|
18
|
+
/** Default cap on the events of one run (the service's per-task cap). */
|
|
19
|
+
export declare const DEFAULT_MAX_EVENTS = 10000;
|
|
20
|
+
/** Most entries the step log keeps (the service's limit for a script task). */
|
|
21
|
+
export declare const MAX_STEP_LOG_ENTRIES = 500;
|
|
22
|
+
/** Longest message an event carries. */
|
|
23
|
+
export declare const MAX_EVENT_MESSAGE = 2000;
|
|
24
|
+
/** One step event (contract `UiTaskEventInput`). */
|
|
25
|
+
export interface UiRunEvent {
|
|
26
|
+
/** From 1, unique and increasing within the run. */
|
|
27
|
+
seq: number;
|
|
28
|
+
kind: UiRunEventKind;
|
|
29
|
+
stepPath?: string;
|
|
30
|
+
stepId?: string;
|
|
31
|
+
action?: UiStepAction;
|
|
32
|
+
/** The target method kind that found the element. */
|
|
33
|
+
resolvedBy?: string;
|
|
34
|
+
durationMs?: number;
|
|
35
|
+
errorCode?: UiErrorCode;
|
|
36
|
+
message?: string;
|
|
37
|
+
screenshotFileId?: string;
|
|
38
|
+
detail?: Record<string, unknown>;
|
|
39
|
+
/** ISO 8601. */
|
|
40
|
+
at: string;
|
|
41
|
+
}
|
|
42
|
+
/** An event before the emitter numbers and stamps it. */
|
|
43
|
+
export type UiRunEventDraft = Omit<UiRunEvent, 'seq' | 'at'>;
|
|
44
|
+
/** One step-log entry: short codes only, never the failure detail (that is in the events). */
|
|
45
|
+
export interface UiStepLogEntry {
|
|
46
|
+
path: string;
|
|
47
|
+
stepId: string;
|
|
48
|
+
action: UiStepAction;
|
|
49
|
+
status: 'passed' | 'failed' | 'skipped';
|
|
50
|
+
/** The target method kind that found the element. */
|
|
51
|
+
method?: string;
|
|
52
|
+
durationMs: number;
|
|
53
|
+
/** The library element the step's target named. */
|
|
54
|
+
elementId?: string;
|
|
55
|
+
screenshotFileId?: string;
|
|
56
|
+
/** The short error code of a failed step. */
|
|
57
|
+
error?: UiErrorCode;
|
|
58
|
+
}
|
|
59
|
+
/** Numbers, stamps and caps events, and delivers them in order. */
|
|
60
|
+
export declare class EventEmitter {
|
|
61
|
+
private readonly maxEvents;
|
|
62
|
+
private readonly now;
|
|
63
|
+
private readonly deliver;
|
|
64
|
+
private seq;
|
|
65
|
+
private dropped;
|
|
66
|
+
private truncated;
|
|
67
|
+
constructor(maxEvents: number, now: () => number, deliver: ((event: UiRunEvent) => void | Promise<void>) | undefined);
|
|
68
|
+
get emitted(): number;
|
|
69
|
+
get droppedCount(): number;
|
|
70
|
+
get isTruncated(): boolean;
|
|
71
|
+
emit(draft: UiRunEventDraft): Promise<void>;
|
|
72
|
+
private send;
|
|
73
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { UiExpression, UiExpressionOp, UiValuePath } from '../script/types.js';
|
|
2
|
+
/** A value a script holds: JSON. */
|
|
3
|
+
export type UiValue = string | number | boolean | null | UiValue[] | {
|
|
4
|
+
[key: string]: UiValue;
|
|
5
|
+
};
|
|
6
|
+
/** Longest text an expression may produce. */
|
|
7
|
+
export declare const MAX_VALUE_TEXT = 1000000;
|
|
8
|
+
/** Most items a list an expression produces may hold (a `split`, a `list` of lists). */
|
|
9
|
+
export declare const MAX_VALUE_ITEMS = 10000;
|
|
10
|
+
/** What an expression reads. */
|
|
11
|
+
export interface ExpressionScope {
|
|
12
|
+
/** Input values by name (declared defaults already applied). */
|
|
13
|
+
readonly inputs: Readonly<Record<string, UiValue>>;
|
|
14
|
+
/** Variable values by name. */
|
|
15
|
+
readonly variables: ReadonlyMap<string, UiValue>;
|
|
16
|
+
/** Milliseconds since the epoch, for `now`. */
|
|
17
|
+
now(): number;
|
|
18
|
+
}
|
|
19
|
+
/** A JSON-safe copy of anything a driver or a host handed in: functions and other non-JSON values become null. */
|
|
20
|
+
export declare function toUiValue(value: unknown, depth?: number): UiValue;
|
|
21
|
+
/** Read a path (object keys and list indexes) into a value; a missing step gives null. Only own properties are read. */
|
|
22
|
+
export declare function readPath(value: UiValue, path: UiValuePath | undefined): UiValue;
|
|
23
|
+
/**
|
|
24
|
+
* Truthiness for conditions: false, null, 0, empty text, the texts "false",
|
|
25
|
+
* "0" and "no" (any case, trimmed), and an empty list or object are false.
|
|
26
|
+
*/
|
|
27
|
+
export declare function truthy(value: UiValue): boolean;
|
|
28
|
+
/** Deep equality of two values (objects by own keys, in any order). */
|
|
29
|
+
export declare function valuesEqual(a: UiValue, b: UiValue): boolean;
|
|
30
|
+
/** Text form of a value: null is empty, lists and objects are JSON. */
|
|
31
|
+
export declare function toText(value: UiValue, op?: UiExpressionOp): string;
|
|
32
|
+
/** Number form of a value: numbers, numeric text, true and false (1 and 0), and null (0). */
|
|
33
|
+
export declare function toNumber(value: UiValue, op?: UiExpressionOp): number;
|
|
34
|
+
/** Evaluate an expression in a scope. Throws `UiRunError` (`EXPRESSION_ERROR`). */
|
|
35
|
+
export declare function evaluateExpression(expression: UiExpression, scope: ExpressionScope): UiValue;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@burdenoff/ui-engine/interpret`: the UI script interpreter (plan P1-02).
|
|
3
|
+
* `errors.ts` holds every run-time error code with its node error family,
|
|
4
|
+
* `expr.ts` the expression evaluator, `driver.ts` the desk driver interface,
|
|
5
|
+
* `compile.ts` the compiler a worker runs before it parks a node, `run.ts` the
|
|
6
|
+
* interpreter and `events.ts` the step events and step log.
|
|
7
|
+
*/
|
|
8
|
+
export { UI_ERROR_CODES, UI_ERROR_CODE_LIST, UI_ERROR_FAMILIES, type UiErrorCode, type UiErrorCodeInfo, type UiErrorDetail, type UiErrorFamily, UiDriverError, UiRunError, errorFamilyOf, isRetryableInScript, isUiErrorCode, } from './errors.js';
|
|
9
|
+
export { type ExpressionScope, MAX_VALUE_ITEMS, MAX_VALUE_TEXT, type UiValue, evaluateExpression, readPath, toNumber, toText, toUiValue, truthy, valuesEqual, } from './expr.js';
|
|
10
|
+
export { type UiClock, type UiDriver, type UiDriverFailure, type UiDriverListResult, type UiDriverResult, type UiListField, type UiListRow, type UiLoginTargets, type UiReadKind, type UiReadValue, type UiStepContext, createVirtualClock, realClock, } from './driver.js';
|
|
11
|
+
export { DEFAULT_MAX_EVENTS, MAX_EVENT_MESSAGE, MAX_STEP_LOG_ENTRIES, UI_RUN_EVENT_KINDS, type UiRunEvent, type UiRunEventKind, type UiStepLogEntry, } from './events.js';
|
|
12
|
+
export { COMPILED_NAME_PREFIX, type CompileUiScriptOptions, type CompiledUiScript, type InlinedCall, MAX_CALL_DEPTH, type ResolvedUiElement, type ResolvedUiSequence, applyPins, compileUiScript, inlineCalls, stripBreakpoints, } from './compile.js';
|
|
13
|
+
export { DEFAULT_FIRST_WAIT_MS, DEFAULT_LIST_ITEMS, DEFAULT_POLL_INTERVAL_MS, DEFAULT_RETRY_DELAY_MS, DEFAULT_WAIT_MS, MAX_EVENTS_LIMIT, MAX_PAGE_TEXT, type RunUiScriptOptions, type UiRunFailure, type UiRunResult, type UiTaskCommand, runUiScript, } from './run.js';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type UiDriver } from './driver.js';
|
|
2
|
+
import { type UiErrorCode, type UiErrorFamily } from './errors.js';
|
|
3
|
+
import { type UiRunEvent, type UiStepLogEntry } from './events.js';
|
|
4
|
+
import { type UiValue } from './expr.js';
|
|
5
|
+
/** The default wait for the first targeted step on a screen (spec 05 section 3.3). */
|
|
6
|
+
export declare const DEFAULT_FIRST_WAIT_MS = 30000;
|
|
7
|
+
/** The default wait for later steps. */
|
|
8
|
+
export declare const DEFAULT_WAIT_MS = 10000;
|
|
9
|
+
/** The default delay between a step's retries and between a retry scope's attempts. */
|
|
10
|
+
export declare const DEFAULT_RETRY_DELAY_MS = 1000;
|
|
11
|
+
/** The default pause between two polls of a wait. */
|
|
12
|
+
export declare const DEFAULT_POLL_INTERVAL_MS = 250;
|
|
13
|
+
/** Most events one run may be configured to emit. */
|
|
14
|
+
export declare const MAX_EVENTS_LIMIT = 100000;
|
|
15
|
+
/** Longest page text or HTML a step keeps. */
|
|
16
|
+
export declare const MAX_PAGE_TEXT = 1000000;
|
|
17
|
+
/** Default items of an extract list step (types: absent means 100). */
|
|
18
|
+
export declare const DEFAULT_LIST_ITEMS = 100;
|
|
19
|
+
/** A step-through command for a paused TEST run (contract `UiTaskCommand`). */
|
|
20
|
+
export type UiTaskCommand = 'NEXT' | 'SKIP' | 'CONTINUE' | 'STOP';
|
|
21
|
+
export interface RunUiScriptOptions {
|
|
22
|
+
/** Input values by name. Declared defaults fill the ones not given. */
|
|
23
|
+
inputs?: Readonly<Record<string, unknown>>;
|
|
24
|
+
/** `test` honours breakpoints and step-through; `production` (the default) never pauses. */
|
|
25
|
+
mode?: 'test' | 'production';
|
|
26
|
+
/** Step path of the first step to run. */
|
|
27
|
+
startAt?: string;
|
|
28
|
+
/** Step path of the last step to run. */
|
|
29
|
+
stopAfter?: string;
|
|
30
|
+
/** Most events (default 10,000), plus the final FINISHED. */
|
|
31
|
+
maxEvents?: number;
|
|
32
|
+
/** Aborts the run with `CANCELLED`. */
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
/** Receives every event in order; awaited, and a failure to deliver never fails the run. */
|
|
35
|
+
onEvent?: (event: UiRunEvent) => void | Promise<void>;
|
|
36
|
+
/** In a TEST run, asked for the next command whenever the run pauses. Without it, breakpoints are ignored. */
|
|
37
|
+
waitForCommand?: (paused: {
|
|
38
|
+
stepPath: string;
|
|
39
|
+
stepId: string;
|
|
40
|
+
}) => Promise<UiTaskCommand>;
|
|
41
|
+
/** Pause before the first step to run (TEST runs with `waitForCommand`). */
|
|
42
|
+
stepThrough?: boolean;
|
|
43
|
+
/** Pause between polls of a wait (default 250 ms). */
|
|
44
|
+
pollIntervalMs?: number;
|
|
45
|
+
/** Skip the clean-up steps after a cancel (a worker shutting down). Absent means they run. */
|
|
46
|
+
skipCleanupOnCancel?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/** Why a run did not succeed. */
|
|
49
|
+
export interface UiRunFailure {
|
|
50
|
+
code: UiErrorCode;
|
|
51
|
+
family: UiErrorFamily;
|
|
52
|
+
message: string;
|
|
53
|
+
stepPath?: string;
|
|
54
|
+
stepId?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface UiRunResult {
|
|
57
|
+
status: 'succeeded' | 'failed' | 'cancelled' | 'stopped';
|
|
58
|
+
/** The script's outputs, evaluated when it succeeded. */
|
|
59
|
+
outputs: Record<string, UiValue>;
|
|
60
|
+
/** Every `saveAs` value, by name (names with a leading `__` are left out). */
|
|
61
|
+
results: Record<string, UiValue>;
|
|
62
|
+
stepLog: UiStepLogEntry[];
|
|
63
|
+
stepLogTruncated: boolean;
|
|
64
|
+
error?: UiRunFailure;
|
|
65
|
+
/** The path of the last action step that passed: the checkpoint a resumed run starts after. */
|
|
66
|
+
lastCompletedStepPath?: string;
|
|
67
|
+
/** Action steps that passed. */
|
|
68
|
+
completedSteps: number;
|
|
69
|
+
events: {
|
|
70
|
+
emitted: number;
|
|
71
|
+
dropped: number;
|
|
72
|
+
truncated: boolean;
|
|
73
|
+
};
|
|
74
|
+
durationMs: number;
|
|
75
|
+
}
|
|
76
|
+
/** Run a UI script on a desk. Never throws for a script problem: the result carries it. */
|
|
77
|
+
export declare function runUiScript(script: unknown, driver: UiDriver, options?: RunUiScriptOptions): Promise<UiRunResult>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import"./index-cs6acyjn.js";
|
|
2
|
+
import"./index-895kscx3.js";
|
|
3
|
+
import {
|
|
4
|
+
MAX_CALL_DEPTH2,
|
|
5
|
+
COMPILED_NAME_PREFIX2,
|
|
6
|
+
applyPins2,
|
|
7
|
+
stripBreakpoints2,
|
|
8
|
+
inlineCalls2,
|
|
9
|
+
compileUiScript2
|
|
10
|
+
} from "./index-h88y5qgv.js";
|
|
11
|
+
import {
|
|
12
|
+
MAX_VALUE_TEXT2,
|
|
13
|
+
MAX_VALUE_ITEMS2,
|
|
14
|
+
toUiValue2,
|
|
15
|
+
readPath2,
|
|
16
|
+
truthy2,
|
|
17
|
+
valuesEqual2,
|
|
18
|
+
toText2,
|
|
19
|
+
toNumber2,
|
|
20
|
+
evaluateExpression2,
|
|
21
|
+
UI_RUN_EVENT_KINDS2,
|
|
22
|
+
DEFAULT_MAX_EVENTS2,
|
|
23
|
+
MAX_STEP_LOG_ENTRIES2,
|
|
24
|
+
MAX_EVENT_MESSAGE2,
|
|
25
|
+
DEFAULT_FIRST_WAIT_MS2,
|
|
26
|
+
DEFAULT_WAIT_MS2,
|
|
27
|
+
DEFAULT_RETRY_DELAY_MS2,
|
|
28
|
+
DEFAULT_POLL_INTERVAL_MS2,
|
|
29
|
+
MAX_EVENTS_LIMIT2,
|
|
30
|
+
MAX_PAGE_TEXT2,
|
|
31
|
+
DEFAULT_LIST_ITEMS2,
|
|
32
|
+
runUiScript2
|
|
33
|
+
} from "./index-zzhysbkj.js";
|
|
34
|
+
import {
|
|
35
|
+
UI_ERROR_FAMILIES2,
|
|
36
|
+
UI_ERROR_CODES2,
|
|
37
|
+
UI_ERROR_CODE_LIST2,
|
|
38
|
+
isUiErrorCode2,
|
|
39
|
+
errorFamilyOf2,
|
|
40
|
+
isRetryableInScript2,
|
|
41
|
+
UiRunError2,
|
|
42
|
+
UiDriverError2,
|
|
43
|
+
realClock2,
|
|
44
|
+
createVirtualClock2
|
|
45
|
+
} from "./index-vg8r40y7.js";
|
|
46
|
+
export {
|
|
47
|
+
COMPILED_NAME_PREFIX2 as COMPILED_NAME_PREFIX,
|
|
48
|
+
DEFAULT_FIRST_WAIT_MS2 as DEFAULT_FIRST_WAIT_MS,
|
|
49
|
+
DEFAULT_LIST_ITEMS2 as DEFAULT_LIST_ITEMS,
|
|
50
|
+
DEFAULT_MAX_EVENTS2 as DEFAULT_MAX_EVENTS,
|
|
51
|
+
DEFAULT_POLL_INTERVAL_MS2 as DEFAULT_POLL_INTERVAL_MS,
|
|
52
|
+
DEFAULT_RETRY_DELAY_MS2 as DEFAULT_RETRY_DELAY_MS,
|
|
53
|
+
DEFAULT_WAIT_MS2 as DEFAULT_WAIT_MS,
|
|
54
|
+
MAX_CALL_DEPTH2 as MAX_CALL_DEPTH,
|
|
55
|
+
MAX_EVENTS_LIMIT2 as MAX_EVENTS_LIMIT,
|
|
56
|
+
MAX_EVENT_MESSAGE2 as MAX_EVENT_MESSAGE,
|
|
57
|
+
MAX_PAGE_TEXT2 as MAX_PAGE_TEXT,
|
|
58
|
+
MAX_STEP_LOG_ENTRIES2 as MAX_STEP_LOG_ENTRIES,
|
|
59
|
+
MAX_VALUE_ITEMS2 as MAX_VALUE_ITEMS,
|
|
60
|
+
MAX_VALUE_TEXT2 as MAX_VALUE_TEXT,
|
|
61
|
+
UI_ERROR_CODES2 as UI_ERROR_CODES,
|
|
62
|
+
UI_ERROR_CODE_LIST2 as UI_ERROR_CODE_LIST,
|
|
63
|
+
UI_ERROR_FAMILIES2 as UI_ERROR_FAMILIES,
|
|
64
|
+
UI_RUN_EVENT_KINDS2 as UI_RUN_EVENT_KINDS,
|
|
65
|
+
UiDriverError2 as UiDriverError,
|
|
66
|
+
UiRunError2 as UiRunError,
|
|
67
|
+
applyPins2 as applyPins,
|
|
68
|
+
compileUiScript2 as compileUiScript,
|
|
69
|
+
createVirtualClock2 as createVirtualClock,
|
|
70
|
+
errorFamilyOf2 as errorFamilyOf,
|
|
71
|
+
evaluateExpression2 as evaluateExpression,
|
|
72
|
+
inlineCalls2 as inlineCalls,
|
|
73
|
+
isRetryableInScript2 as isRetryableInScript,
|
|
74
|
+
isUiErrorCode2 as isUiErrorCode,
|
|
75
|
+
readPath2 as readPath,
|
|
76
|
+
realClock2 as realClock,
|
|
77
|
+
runUiScript2 as runUiScript,
|
|
78
|
+
stripBreakpoints2 as stripBreakpoints,
|
|
79
|
+
toNumber2 as toNumber,
|
|
80
|
+
toText2 as toText,
|
|
81
|
+
toUiValue2 as toUiValue,
|
|
82
|
+
truthy2 as truthy,
|
|
83
|
+
valuesEqual2 as valuesEqual
|
|
84
|
+
};
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
* `src/modules/runs/services/browser/browser-contract.ts` (the 14 actions, at
|
|
4
4
|
* most 100 steps, at most 256 KB) and fluidgrids-workers
|
|
5
5
|
* `src/internalnodes/services/browser-action.ts` (each action's fields).
|
|
6
|
-
* `tests/fixtures/browser-contract.json`
|
|
7
|
-
*
|
|
6
|
+
* `tests/fixtures/browser-contract.json` is a copy of the service's list and
|
|
7
|
+
* limits taken at the commit it names, and a test checks this mirror against
|
|
8
|
+
* that copy. The copy does not follow the service by itself: when the service
|
|
9
|
+
* contract changes, refresh the fixture from the service file first, and the
|
|
10
|
+
* test then fails until this mirror is updated to match.
|
|
8
11
|
*/
|
|
9
12
|
/** The step actions a 0.3.0 extension runs, in the order the service lists them. */
|
|
10
13
|
export declare const BROWSER_STEP_ACTIONS: readonly ["navigate", "waitFor", "click", "type", "select", "check", "pressKey", "scroll", "extract", "extractList", "getPageText", "getPageHtml", "screenshot", "closeTab"];
|
package/dist/script/limits.d.ts
CHANGED
|
@@ -57,5 +57,7 @@ export declare const MAX_NAME_LENGTH = 64;
|
|
|
57
57
|
/** The legacy Run in Browser contract a lowered script must fit (wspace-workflow-svc `browser-contract.ts`). */
|
|
58
58
|
export declare const LEGACY_MAX_BROWSER_STEPS = 100;
|
|
59
59
|
export declare const LEGACY_MAX_STEPS_BYTES: number;
|
|
60
|
+
/** The longest step wait the legacy extension honours (it caps waits at 60 s); a longer wait is not lowered. */
|
|
61
|
+
export declare const LEGACY_MAX_STEP_TIMEOUT_MS = 60000;
|
|
60
62
|
/** UTF-8 byte length of a value serialised as JSON (browser safe, no Buffer). */
|
|
61
63
|
export declare function jsonByteLength(value: unknown): number;
|
package/dist/script.js
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
uiScriptRegistry2,
|
|
3
|
+
NAME_PATTERN2,
|
|
4
|
+
STEP_ID_PATTERN2,
|
|
5
|
+
ELEMENT_KEY_PATTERN2,
|
|
6
|
+
uiExpressionSchema2,
|
|
7
|
+
uiTargetMethodSchema2,
|
|
8
|
+
uiTargetSchema2,
|
|
9
|
+
uiTargetRefSchema2,
|
|
10
|
+
uiStepSchema2,
|
|
11
|
+
uiScriptSchema2,
|
|
12
|
+
canonicalJson2,
|
|
13
|
+
RECORDING_ACTION_OF2,
|
|
14
|
+
uiStepFingerprint2,
|
|
15
|
+
withFingerprint2,
|
|
16
|
+
UiScriptError2,
|
|
17
|
+
UI_EXPRESSION_ARITY2,
|
|
18
|
+
parseUiScript2,
|
|
19
|
+
safeParseUiScript2
|
|
20
|
+
} from "./index-895kscx3.js";
|
|
21
|
+
import"./index-cs6acyjn.js";
|
|
22
|
+
import {
|
|
23
|
+
UI_SCRIPT_SCHEMA_HASH2,
|
|
24
|
+
schemaHashOf2,
|
|
25
|
+
UI_SCRIPT_SCHEMA_TITLE2,
|
|
26
|
+
uiScriptJsonSchema2,
|
|
27
|
+
UI_SCRIPT_STEP_KEY_PREFIX2,
|
|
28
|
+
UI_SCRIPT_STEP_MESSAGES2,
|
|
29
|
+
stepMessageKey2,
|
|
30
|
+
describeTarget2,
|
|
31
|
+
describeExpression2,
|
|
32
|
+
describeStep2,
|
|
33
|
+
BROWSER_STEP_ACTIONS2,
|
|
34
|
+
fromBrowserActionSteps2,
|
|
35
|
+
toBrowserActionSteps2,
|
|
36
|
+
targetFromPlaywrightSelector2,
|
|
37
|
+
fromRemoteBrowserSteps2,
|
|
38
|
+
fromRecording2,
|
|
39
|
+
toRecording2
|
|
40
|
+
} from "./index-pm13mvvc.js";
|
|
1
41
|
import {
|
|
2
42
|
UI_EXPRESSION_OPS2,
|
|
3
43
|
UI_ANCHOR_RELATIONS2,
|
|
@@ -37,18 +77,8 @@ import {
|
|
|
37
77
|
MAX_NAME_LENGTH2,
|
|
38
78
|
LEGACY_MAX_BROWSER_STEPS2,
|
|
39
79
|
LEGACY_MAX_STEPS_BYTES2,
|
|
80
|
+
LEGACY_MAX_STEP_TIMEOUT_MS2,
|
|
40
81
|
jsonByteLength2,
|
|
41
|
-
uiScriptRegistry2,
|
|
42
|
-
NAME_PATTERN2,
|
|
43
|
-
STEP_ID_PATTERN2,
|
|
44
|
-
ELEMENT_KEY_PATTERN2,
|
|
45
|
-
uiExpressionSchema2,
|
|
46
|
-
uiTargetMethodSchema2,
|
|
47
|
-
uiTargetSchema2,
|
|
48
|
-
uiTargetRefSchema2,
|
|
49
|
-
uiStepSchema2,
|
|
50
|
-
uiScriptSchema2,
|
|
51
|
-
canonicalJson2,
|
|
52
82
|
childBlocks2,
|
|
53
83
|
walkSteps2,
|
|
54
84
|
countSteps2,
|
|
@@ -56,42 +86,18 @@ import {
|
|
|
56
86
|
stepTargets2,
|
|
57
87
|
stepExpressions2,
|
|
58
88
|
visitExpression2,
|
|
59
|
-
RECORDING_ACTION_OF2,
|
|
60
|
-
uiStepFingerprint2,
|
|
61
|
-
withFingerprint2,
|
|
62
|
-
UiScriptError2,
|
|
63
|
-
UI_EXPRESSION_ARITY2,
|
|
64
|
-
parseUiScript2,
|
|
65
|
-
safeParseUiScript2,
|
|
66
|
-
UI_SCRIPT_SCHEMA_HASH2,
|
|
67
|
-
schemaHashOf2,
|
|
68
|
-
UI_SCRIPT_SCHEMA_TITLE2,
|
|
69
|
-
uiScriptJsonSchema2,
|
|
70
89
|
CAPABILITY_IDS2,
|
|
71
90
|
SCRIPT_CAPABILITY2,
|
|
72
91
|
requiredCapabilities2,
|
|
73
|
-
missingCapabilities2
|
|
74
|
-
|
|
75
|
-
UI_SCRIPT_STEP_MESSAGES2,
|
|
76
|
-
stepMessageKey2,
|
|
77
|
-
describeTarget2,
|
|
78
|
-
describeExpression2,
|
|
79
|
-
describeStep2,
|
|
80
|
-
BROWSER_STEP_ACTIONS2,
|
|
81
|
-
fromBrowserActionSteps2,
|
|
82
|
-
toBrowserActionSteps2,
|
|
83
|
-
targetFromPlaywrightSelector2,
|
|
84
|
-
fromRemoteBrowserSteps2,
|
|
85
|
-
fromRecording2,
|
|
86
|
-
toRecording2
|
|
87
|
-
} from "./index-zwrxw3zp.js";
|
|
88
|
-
import"./index-cs6acyjn.js";
|
|
92
|
+
missingCapabilities2
|
|
93
|
+
} from "./index-3jymbm5t.js";
|
|
89
94
|
export {
|
|
90
95
|
BROWSER_STEP_ACTIONS2 as BROWSER_STEP_ACTIONS,
|
|
91
96
|
CAPABILITY_IDS2 as CAPABILITY_IDS,
|
|
92
97
|
ELEMENT_KEY_PATTERN2 as ELEMENT_KEY_PATTERN,
|
|
93
98
|
LEGACY_MAX_BROWSER_STEPS2 as LEGACY_MAX_BROWSER_STEPS,
|
|
94
99
|
LEGACY_MAX_STEPS_BYTES2 as LEGACY_MAX_STEPS_BYTES,
|
|
100
|
+
LEGACY_MAX_STEP_TIMEOUT_MS2 as LEGACY_MAX_STEP_TIMEOUT_MS,
|
|
95
101
|
MAX_DELAY_MS2 as MAX_DELAY_MS,
|
|
96
102
|
MAX_EXPRESSION_DEPTH2 as MAX_EXPRESSION_DEPTH,
|
|
97
103
|
MAX_EXPRESSION_ITEMS2 as MAX_EXPRESSION_ITEMS,
|
package/dist/target/index.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export { MAX_COMPARED_TEXT, clip, containsText, editDistance, normaliseText, sam
|
|
|
9
9
|
export { MAX_NAME_LENGTH, MAX_VISIBLE_TEXT, type TextProbe, accessibleName, isTypedContent, labelName, matchesRoleAndName, roleOf, visibleText, } from './aria.js';
|
|
10
10
|
export { type ElementStateProbe, SENSITIVE_MARKERS, type WebSearchRoot, elementRect, elementsUnder, isElementEnabled, isElementVisible, isSecretFieldName, isSensitiveElement, parentAcrossShadow, } from './dom.js';
|
|
11
11
|
export { ANCHOR_MARGIN_PX, DEFAULT_FUZZY_THRESHOLD, FUZZY_MARGIN, INTERACTIVE_ROLES, MAX_XPATH_RESULTS, type MethodMatch, type ScoredElement, matchMethod, relationDistance, } from './methods.js';
|
|
12
|
-
export { type ResolveWebTargetOptions, type WebFrameEntry, describeCandidate, enterFrames, resolveWebTarget, } from './resolve.js';
|
|
12
|
+
export { type ResolveWebTargetOptions, type WebFrameEntry, type WebTargetMatches, describeCandidate, enterFrames, resolveAllWebTargets, resolveWebTarget, } from './resolve.js';
|
|
13
13
|
export { DEFAULT_SNAPSHOT_MAX_NODES, type HydratedSnapshot, MAX_SNAPSHOT_DEPTH, MAX_SNAPSHOT_TEXT, type SerializeTreeSnapshotOptions, UI_TREE_SNAPSHOT_VERSION, type UiTreeSnapshot, type UiTreeSnapshotChild, type UiTreeSnapshotNode, hydrateTreeSnapshot, serializeTreeSnapshot, snapshotUrl, } from './snapshot.js';
|
package/dist/target/resolve.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import type { UiTarget, UiTargetMethod } from '../script/types.js';
|
|
21
21
|
import { type ElementStateProbe, type WebSearchRoot } from './dom.js';
|
|
22
|
-
import { type WebCandidate, type WebElementState, type WebFrameProblem, type WebRect, type WebTargetResolution } from './types.js';
|
|
22
|
+
import { type WebCandidate, type WebElementState, type WebFrameProblem, type WebMethodAttempt, type WebRect, type WebTargetResolution } from './types.js';
|
|
23
23
|
export interface ResolveWebTargetOptions extends ElementStateProbe {
|
|
24
24
|
/** What a matched element must be. Absent means `interactable`. */
|
|
25
25
|
state?: WebElementState;
|
|
@@ -44,3 +44,20 @@ export declare function describeCandidate(element: Element, method: UiTargetMeth
|
|
|
44
44
|
* up to five candidates.
|
|
45
45
|
*/
|
|
46
46
|
export declare function resolveWebTarget(root: WebSearchRoot, target: UiTarget, options?: ResolveWebTargetOptions): WebTargetResolution<Element>;
|
|
47
|
+
/** Every element of a target, for steps that read all matches (an extract field with `all`, a list, a for each). */
|
|
48
|
+
export interface WebTargetMatches {
|
|
49
|
+
status: 'found';
|
|
50
|
+
/** In document order for list methods, best score first for `fuzzy` and `anchor`. */
|
|
51
|
+
elements: Element[];
|
|
52
|
+
method: UiTargetMethod['kind'];
|
|
53
|
+
methodIndex: number;
|
|
54
|
+
attempts: WebMethodAttempt[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Find every element of a target: the first enabled method that matches at
|
|
58
|
+
* least one element in the required state gives all of its matches (an `nth`
|
|
59
|
+
* is ignored, because every match is wanted). Reading several elements never
|
|
60
|
+
* acts on them, so this is not a way around the single-match rule of
|
|
61
|
+
* `resolveWebTarget`.
|
|
62
|
+
*/
|
|
63
|
+
export declare function resolveAllWebTargets(root: WebSearchRoot, target: UiTarget, options?: ResolveWebTargetOptions): WebTargetMatches | WebTargetResolution<Element>;
|