doc-detective 4.38.0 → 4.41.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 +4 -4
- package/dist/agents/adapters/claude-code.d.ts.map +1 -1
- package/dist/agents/adapters/claude-code.js +1 -2
- package/dist/agents/adapters/claude-code.js.map +1 -1
- package/dist/agents/adapters/codex.d.ts.map +1 -1
- package/dist/agents/adapters/codex.js +3 -4
- package/dist/agents/adapters/codex.js.map +1 -1
- package/dist/agents/adapters/copilot-cli.d.ts.map +1 -1
- package/dist/agents/adapters/copilot-cli.js +1 -2
- package/dist/agents/adapters/copilot-cli.js.map +1 -1
- package/dist/agents/adapters/gemini-cli.d.ts.map +1 -1
- package/dist/agents/adapters/gemini-cli.js +1 -2
- package/dist/agents/adapters/gemini-cli.js.map +1 -1
- package/dist/agents/adapters/opencode.d.ts.map +1 -1
- package/dist/agents/adapters/opencode.js +1 -2
- package/dist/agents/adapters/opencode.js.map +1 -1
- package/dist/agents/adapters/qwen-code.d.ts.map +1 -1
- package/dist/agents/adapters/qwen-code.js +1 -2
- package/dist/agents/adapters/qwen-code.js.map +1 -1
- package/dist/agents/fetcher.d.ts.map +1 -1
- package/dist/agents/fetcher.js +1 -2
- package/dist/agents/fetcher.js.map +1 -1
- package/dist/common/src/ajv.d.ts +30 -0
- package/dist/common/src/ajv.d.ts.map +1 -0
- package/dist/common/src/ajv.js +131 -0
- package/dist/common/src/ajv.js.map +1 -0
- package/dist/common/src/detectTests.d.ts +2 -18
- package/dist/common/src/detectTests.d.ts.map +1 -1
- package/dist/common/src/detectTests.js +8 -77
- package/dist/common/src/detectTests.js.map +1 -1
- package/dist/common/src/schemas/referenced.d.ts +12 -0
- package/dist/common/src/schemas/referenced.d.ts.map +1 -0
- package/dist/common/src/schemas/referenced.js +10 -0
- package/dist/common/src/schemas/referenced.js.map +1 -0
- package/dist/common/src/schemas/schemas.json +2 -2
- package/dist/common/src/schemas/schemasReferenced.json +14871 -0
- package/dist/common/src/schemas/validators.cjs +509 -0
- package/dist/common/src/schemas/validatorsCheck.cjs +2 -0
- package/dist/common/src/textUtils.d.ts +25 -0
- package/dist/common/src/textUtils.d.ts.map +1 -0
- package/dist/common/src/textUtils.js +84 -0
- package/dist/common/src/textUtils.js.map +1 -0
- package/dist/common/src/types/generated/annotate_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/annotation_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/click_v3.d.ts +153 -0
- package/dist/common/src/types/generated/click_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/config_v3.d.ts +13753 -207
- package/dist/common/src/types/generated/config_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/dragAndDrop_v3.d.ts +72 -0
- package/dist/common/src/types/generated/dragAndDrop_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/find_v3.d.ts +632 -0
- package/dist/common/src/types/generated/find_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/goTo_v3.d.ts +31 -0
- package/dist/common/src/types/generated/goTo_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/httpRequest_v3.d.ts +181 -0
- package/dist/common/src/types/generated/httpRequest_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/loadCookie_v3.d.ts +30 -0
- package/dist/common/src/types/generated/loadCookie_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/report_v3.d.ts +28234 -321
- package/dist/common/src/types/generated/report_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/resolvedTests_v3.d.ts +42281 -822
- package/dist/common/src/types/generated/resolvedTests_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/saveCookie_v3.d.ts +35 -0
- package/dist/common/src/types/generated/saveCookie_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/screenshot_v3.d.ts +45 -0
- package/dist/common/src/types/generated/screenshot_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/spec_v3.d.ts +28188 -275
- package/dist/common/src/types/generated/spec_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/startSurface_v3.d.ts +63 -1
- package/dist/common/src/types/generated/startSurface_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/step_v3.d.ts +5186 -523
- package/dist/common/src/types/generated/step_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/test_v3.d.ts +13268 -3582
- package/dist/common/src/types/generated/test_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/type_v3.d.ts +62 -0
- package/dist/common/src/types/generated/type_v3.d.ts.map +1 -1
- package/dist/common/src/types/generated/waitUntil_v3.d.ts +62 -0
- package/dist/common/src/types/generated/waitUntil_v3.d.ts.map +1 -1
- package/dist/common/src/validate.d.ts +1 -1
- package/dist/common/src/validate.d.ts.map +1 -1
- package/dist/common/src/validate.js +29 -75
- package/dist/common/src/validate.js.map +1 -1
- package/dist/core/appium.d.ts +3 -2
- package/dist/core/appium.d.ts.map +1 -1
- package/dist/core/appium.js +63 -89
- package/dist/core/appium.js.map +1 -1
- package/dist/core/appiumReuse.d.ts +43 -0
- package/dist/core/appiumReuse.d.ts.map +1 -0
- package/dist/core/appiumReuse.js +226 -0
- package/dist/core/appiumReuse.js.map +1 -0
- package/dist/core/config.d.ts +10 -2
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +37 -7
- package/dist/core/config.js.map +1 -1
- package/dist/core/detectTests.d.ts.map +1 -1
- package/dist/core/detectTests.js +51 -17
- package/dist/core/detectTests.js.map +1 -1
- package/dist/core/files.d.ts.map +1 -1
- package/dist/core/files.js +3 -4
- package/dist/core/files.js.map +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +132 -21
- package/dist/core/index.js.map +1 -1
- package/dist/core/integrations/heretto.d.ts +1 -1
- package/dist/core/integrations/heretto.d.ts.map +1 -1
- package/dist/core/integrations/heretto.js +7 -6
- package/dist/core/integrations/heretto.js.map +1 -1
- package/dist/core/lazyYaml.d.ts +2 -0
- package/dist/core/lazyYaml.d.ts.map +1 -0
- package/dist/core/lazyYaml.js +13 -0
- package/dist/core/lazyYaml.js.map +1 -0
- package/dist/core/resolveTests.js +1 -1
- package/dist/core/resolveTests.js.map +1 -1
- package/dist/core/telem.d.ts +1 -1
- package/dist/core/telem.d.ts.map +1 -1
- package/dist/core/telem.js +2 -11
- package/dist/core/telem.js.map +1 -1
- package/dist/core/telemLite.d.ts +10 -0
- package/dist/core/telemLite.d.ts.map +1 -0
- package/dist/core/telemLite.js +101 -0
- package/dist/core/telemLite.js.map +1 -0
- package/dist/core/tests/androidEmulator.d.ts +67 -4
- package/dist/core/tests/androidEmulator.d.ts.map +1 -1
- package/dist/core/tests/androidEmulator.js +366 -37
- package/dist/core/tests/androidEmulator.js.map +1 -1
- package/dist/core/tests/appSurface.d.ts +25 -6
- package/dist/core/tests/appSurface.d.ts.map +1 -1
- package/dist/core/tests/appSurface.js +88 -52
- package/dist/core/tests/appSurface.js.map +1 -1
- package/dist/core/tests/browserSessions.d.ts +2 -1
- package/dist/core/tests/browserSessions.d.ts.map +1 -1
- package/dist/core/tests/browserSessions.js +7 -1
- package/dist/core/tests/browserSessions.js.map +1 -1
- package/dist/core/tests/checkLink.d.ts +1 -0
- package/dist/core/tests/checkLink.d.ts.map +1 -1
- package/dist/core/tests/checkLink.js +14 -5
- package/dist/core/tests/checkLink.js.map +1 -1
- package/dist/core/tests/closeSurface.d.ts.map +1 -1
- package/dist/core/tests/closeSurface.js +4 -3
- package/dist/core/tests/closeSurface.js.map +1 -1
- package/dist/core/tests/findStrategies.d.ts.map +1 -1
- package/dist/core/tests/findStrategies.js +153 -116
- package/dist/core/tests/findStrategies.js.map +1 -1
- package/dist/core/tests/geckoDriver.d.ts +16 -0
- package/dist/core/tests/geckoDriver.d.ts.map +1 -0
- package/dist/core/tests/geckoDriver.js +127 -0
- package/dist/core/tests/geckoDriver.js.map +1 -0
- package/dist/core/tests/goTo.d.ts.map +1 -1
- package/dist/core/tests/goTo.js +12 -33
- package/dist/core/tests/goTo.js.map +1 -1
- package/dist/core/tests/httpRequest.d.ts.map +1 -1
- package/dist/core/tests/httpRequest.js +4 -3
- package/dist/core/tests/httpRequest.js.map +1 -1
- package/dist/core/tests/iosSimulator.d.ts +4 -1
- package/dist/core/tests/iosSimulator.d.ts.map +1 -1
- package/dist/core/tests/iosSimulator.js +49 -1
- package/dist/core/tests/iosSimulator.js.map +1 -1
- package/dist/core/tests/mobileBrowser.d.ts +2 -1
- package/dist/core/tests/mobileBrowser.d.ts.map +1 -1
- package/dist/core/tests/mobileBrowser.js +5 -2
- package/dist/core/tests/mobileBrowser.js.map +1 -1
- package/dist/core/tests/runCode.d.ts +9 -1
- package/dist/core/tests/runCode.d.ts.map +1 -1
- package/dist/core/tests/runCode.js +58 -2
- package/dist/core/tests/runCode.js.map +1 -1
- package/dist/core/tests/saveScreenshot.d.ts +18 -2
- package/dist/core/tests/saveScreenshot.d.ts.map +1 -1
- package/dist/core/tests/saveScreenshot.js +159 -4
- package/dist/core/tests/saveScreenshot.js.map +1 -1
- package/dist/core/tests/startRecording.d.ts.map +1 -1
- package/dist/core/tests/startRecording.js +6 -4
- package/dist/core/tests/startRecording.js.map +1 -1
- package/dist/core/tests/startSurface.d.ts.map +1 -1
- package/dist/core/tests/startSurface.js +8 -2
- package/dist/core/tests/startSurface.js.map +1 -1
- package/dist/core/tests.d.ts +21 -7
- package/dist/core/tests.d.ts.map +1 -1
- package/dist/core/tests.js +372 -121
- package/dist/core/tests.js.map +1 -1
- package/dist/core/utils.d.ts +68 -3
- package/dist/core/utils.d.ts.map +1 -1
- package/dist/core/utils.js +551 -18
- package/dist/core/utils.js.map +1 -1
- package/dist/core/verification.d.ts +17 -0
- package/dist/core/verification.d.ts.map +1 -0
- package/dist/core/verification.js +850 -0
- package/dist/core/verification.js.map +1 -0
- package/dist/debug/appium.js +2 -2
- package/dist/debug/appium.js.map +1 -1
- package/dist/debug/findings.js +2 -2
- package/dist/debug/findings.js.map +1 -1
- package/dist/debug/tools.d.ts +8 -0
- package/dist/debug/tools.d.ts.map +1 -1
- package/dist/debug/tools.js +60 -22
- package/dist/debug/tools.js.map +1 -1
- package/dist/hints/context.d.ts.map +1 -1
- package/dist/hints/context.js +2 -2
- package/dist/hints/context.js.map +1 -1
- package/dist/index.cjs +25777 -4
- package/dist/reporters/htmlReporter.js +1 -1
- package/dist/runtime/androidInstaller.d.ts +45 -0
- package/dist/runtime/androidInstaller.d.ts.map +1 -1
- package/dist/runtime/androidInstaller.js +88 -5
- package/dist/runtime/androidInstaller.js.map +1 -1
- package/dist/runtime/browsers.d.ts +87 -7
- package/dist/runtime/browsers.d.ts.map +1 -1
- package/dist/runtime/browsers.js +308 -41
- package/dist/runtime/browsers.js.map +1 -1
- package/dist/runtime/cacheDir.d.ts +1 -1
- package/dist/runtime/cacheDir.d.ts.map +1 -1
- package/dist/runtime/cacheDir.js +5 -2
- package/dist/runtime/cacheDir.js.map +1 -1
- package/dist/runtime/heavyDeps.d.ts.map +1 -1
- package/dist/runtime/heavyDeps.js.map +1 -1
- package/dist/runtime/installCommand.d.ts.map +1 -1
- package/dist/runtime/installCommand.js +23 -0
- package/dist/runtime/installCommand.js.map +1 -1
- package/dist/runtime/loader.d.ts +13 -0
- package/dist/runtime/loader.d.ts.map +1 -1
- package/dist/runtime/loader.js +50 -0
- package/dist/runtime/loader.js.map +1 -1
- package/dist/runtime/wdaProducts.d.ts +12 -1
- package/dist/runtime/wdaProducts.d.ts.map +1 -1
- package/dist/runtime/wdaProducts.js +27 -2
- package/dist/runtime/wdaProducts.js.map +1 -1
- package/dist/runtime/windowsBash.d.ts +6 -1
- package/dist/runtime/windowsBash.d.ts.map +1 -1
- package/dist/runtime/windowsBash.js +45 -4
- package/dist/runtime/windowsBash.js.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +19 -5
- package/dist/utils.js.map +1 -1
- package/package.json +43 -41
|
@@ -12,5 +12,637 @@ export type Find = FindElementSimple | FindElementDetailed;
|
|
|
12
12
|
export type FindElementSimple = string;
|
|
13
13
|
export type FindElementDetailed = {
|
|
14
14
|
[k: string]: unknown;
|
|
15
|
+
} & {
|
|
16
|
+
/**
|
|
17
|
+
* The browser window/tab or app window this step acts on. Omit to act on the active surface — the most recently opened, focused, or explicitly targeted surface, whatever its kind. Specifying a surface switches the active surface for the steps that follow. App surfaces use the object form ({ "app": … }).
|
|
18
|
+
*/
|
|
19
|
+
surface?: SurfaceByBrowserEngine | BrowserSurface | AppSurface;
|
|
20
|
+
/**
|
|
21
|
+
* Display text of the element to find. Matched against the element's full visible text with whitespace normalized (leading/trailing trimmed, internal runs collapsed to single spaces), so text a framework splits across several nodes still matches and a driver's surrounding whitespace doesn't cause a miss. Wrap the value in slashes (`/pattern/`) to match a substring by regular expression instead of the whole normalized text. If combined with other element finding fields, the element must match all specified criteria.
|
|
22
|
+
*/
|
|
23
|
+
elementText?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Selector of the element to find. If combined with other element finding fields, the element must match all specified criteria.
|
|
26
|
+
*/
|
|
27
|
+
selector?: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
30
|
+
*/
|
|
31
|
+
elementId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
34
|
+
*/
|
|
35
|
+
elementTestId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes.
|
|
38
|
+
*/
|
|
39
|
+
elementClass?: string | string[];
|
|
40
|
+
/**
|
|
41
|
+
* Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.
|
|
42
|
+
*/
|
|
43
|
+
elementAttribute?: {
|
|
44
|
+
[k: string]: string | number | boolean;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax.
|
|
48
|
+
*/
|
|
49
|
+
elementAria?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Max duration in milliseconds to wait for the element to exist.
|
|
52
|
+
*/
|
|
53
|
+
timeout?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Move the cursor to the element. If the element isn't visible, it's scrolled into view. Off by default — set it explicitly when a step should scroll, or when a recording needs the cursor to travel to the element.
|
|
56
|
+
*/
|
|
57
|
+
moveTo?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Click the element.
|
|
60
|
+
*/
|
|
61
|
+
click?: Click | FindElementAndClick;
|
|
62
|
+
/**
|
|
63
|
+
* Type keys after finding the element. Either a string or an object with a `keys` field as defined in [`type`](type). To type in the element, make the element active with the `click` parameter.
|
|
64
|
+
*/
|
|
65
|
+
type?: TypeKeys;
|
|
15
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
69
|
+
*/
|
|
70
|
+
export type SurfaceByBrowserEngine = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
71
|
+
/**
|
|
72
|
+
* Which window to act on. Omit to use the active window.
|
|
73
|
+
*/
|
|
74
|
+
export type WindowTabSelector = ByIndex | ByName | ByCriteria;
|
|
75
|
+
/**
|
|
76
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
77
|
+
*/
|
|
78
|
+
export type ByIndex = number;
|
|
79
|
+
/**
|
|
80
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
81
|
+
*/
|
|
82
|
+
export type ByName = string;
|
|
83
|
+
/**
|
|
84
|
+
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
85
|
+
*/
|
|
86
|
+
export type WindowTabSelector1 = ByIndex1 | ByName1 | ByCriteria1;
|
|
87
|
+
/**
|
|
88
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
89
|
+
*/
|
|
90
|
+
export type ByIndex1 = number;
|
|
91
|
+
/**
|
|
92
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
93
|
+
*/
|
|
94
|
+
export type ByName1 = string;
|
|
95
|
+
/**
|
|
96
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
97
|
+
*/
|
|
98
|
+
export type AppWindowSelector = ByIndex2 | ByName2 | ByCriteria2;
|
|
99
|
+
/**
|
|
100
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
101
|
+
*/
|
|
102
|
+
export type ByIndex2 = number;
|
|
103
|
+
/**
|
|
104
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
105
|
+
*/
|
|
106
|
+
export type ByName2 = string;
|
|
107
|
+
/**
|
|
108
|
+
* Click or tap an element.
|
|
109
|
+
*/
|
|
110
|
+
export type Click = ClickElementSimple | ClickElementDetailed | boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Identifier for the element to click. Can be a selector, element text, ARIA name, ID, or test ID.
|
|
113
|
+
*/
|
|
114
|
+
export type ClickElementSimple = string;
|
|
115
|
+
export type ClickElementDetailed = {
|
|
116
|
+
[k: string]: unknown;
|
|
117
|
+
} & {
|
|
118
|
+
/**
|
|
119
|
+
* Kind of click to perform.
|
|
120
|
+
*/
|
|
121
|
+
button?: "left" | "right" | "middle";
|
|
122
|
+
/**
|
|
123
|
+
* How long to hold the press, in milliseconds. A long-press (touch-and-hold) on mobile app surfaces; press-and-hold of the button on desktop apps and browsers. Omit for a normal click.
|
|
124
|
+
*/
|
|
125
|
+
duration?: number;
|
|
126
|
+
/**
|
|
127
|
+
* The browser window/tab or app window this step acts on. Omit to act on the active surface — the most recently opened, focused, or explicitly targeted surface, whatever its kind. Specifying a surface switches the active surface for the steps that follow. App surfaces use the object form ({ "app": … }).
|
|
128
|
+
*/
|
|
129
|
+
surface?: SurfaceByBrowserEngine1 | BrowserSurface1 | AppSurface1;
|
|
130
|
+
/**
|
|
131
|
+
* Display text of the element to click. If combined with other element finding fields, the element must match all specified criteria.
|
|
132
|
+
*/
|
|
133
|
+
elementText?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Selector of the element to click. If combined with other element finding fields, the element must match all specified criteria.
|
|
136
|
+
*/
|
|
137
|
+
selector?: string;
|
|
138
|
+
/**
|
|
139
|
+
* ID attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax.
|
|
140
|
+
*/
|
|
141
|
+
elementId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* data-testid attribute of the element to click. Supports exact match or regex pattern using /pattern/ syntax.
|
|
144
|
+
*/
|
|
145
|
+
elementTestId?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes.
|
|
148
|
+
*/
|
|
149
|
+
elementClass?: string | string[];
|
|
150
|
+
/**
|
|
151
|
+
* Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.
|
|
152
|
+
*/
|
|
153
|
+
elementAttribute?: {
|
|
154
|
+
[k: string]: string | number | boolean;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax.
|
|
158
|
+
*/
|
|
159
|
+
elementAria?: string;
|
|
160
|
+
[k: string]: unknown;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Browser engine keyword. Targets that browser. Steps that can only ever act on a browser (not a background process) restrict the bare-string form to this enum, so a process name here is rejected at validation time instead of failing at runtime.
|
|
164
|
+
*/
|
|
165
|
+
export type SurfaceByBrowserEngine1 = "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
166
|
+
/**
|
|
167
|
+
* Which window to act on. Omit to use the active window.
|
|
168
|
+
*/
|
|
169
|
+
export type WindowTabSelector2 = ByIndex3 | ByName3 | ByCriteria3;
|
|
170
|
+
/**
|
|
171
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
172
|
+
*/
|
|
173
|
+
export type ByIndex3 = number;
|
|
174
|
+
/**
|
|
175
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
176
|
+
*/
|
|
177
|
+
export type ByName3 = string;
|
|
178
|
+
/**
|
|
179
|
+
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
180
|
+
*/
|
|
181
|
+
export type WindowTabSelector3 = ByIndex4 | ByName4 | ByCriteria4;
|
|
182
|
+
/**
|
|
183
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
184
|
+
*/
|
|
185
|
+
export type ByIndex4 = number;
|
|
186
|
+
/**
|
|
187
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
188
|
+
*/
|
|
189
|
+
export type ByName4 = string;
|
|
190
|
+
/**
|
|
191
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
192
|
+
*/
|
|
193
|
+
export type AppWindowSelector1 = ByIndex5 | ByName5 | ByCriteria5;
|
|
194
|
+
/**
|
|
195
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
196
|
+
*/
|
|
197
|
+
export type ByIndex5 = number;
|
|
198
|
+
/**
|
|
199
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
200
|
+
*/
|
|
201
|
+
export type ByName5 = string;
|
|
202
|
+
/**
|
|
203
|
+
* Type keys. To type special keys, begin and end the string with `$` and use the special key's keyword. For example, to type the Escape key, enter `$ESCAPE$`.
|
|
204
|
+
*/
|
|
205
|
+
export type TypeKeys = TypeKeysSimple | TypeKeysDetailed;
|
|
206
|
+
/**
|
|
207
|
+
* Sequence of keys to enter.
|
|
208
|
+
*/
|
|
209
|
+
export type TypeKeysSimple = string | string[];
|
|
210
|
+
export type TypeKeysDetailed = {
|
|
211
|
+
keys: TypeKeysSimple1;
|
|
212
|
+
/**
|
|
213
|
+
* Delay in milliseconds between each key press during a recording, and between each keystroke sent to a process surface. Not applied on app surfaces in this phase — the native driver types the value atomically.
|
|
214
|
+
*/
|
|
215
|
+
inputDelay?: number;
|
|
216
|
+
surface?: Surface;
|
|
217
|
+
/**
|
|
218
|
+
* After sending the keys, wait until the surface is ready. Requires a `surface`; the allowed conditions depend on the surface kind: a process surface accepts `stdio`/`delayMs`, a browser surface accepts `networkIdleTime`/`domIdleTime`/`find`, an app surface accepts `delayMs`/`find`. No condition applies by default.
|
|
219
|
+
*/
|
|
220
|
+
waitUntil?: ProcessReadiness | BrowserReadiness | AppReadiness;
|
|
221
|
+
/**
|
|
222
|
+
* Maximum time in milliseconds to wait for `waitUntil` after sending the keys.
|
|
223
|
+
*/
|
|
224
|
+
timeout?: number;
|
|
225
|
+
/**
|
|
226
|
+
* Selector for the element to type into. If not specified, the typing occurs in the active element.
|
|
227
|
+
*/
|
|
228
|
+
selector?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Display text of the element to type into. If combined with other element finding fields, the element must match all specified criteria.
|
|
231
|
+
*/
|
|
232
|
+
elementText?: string;
|
|
233
|
+
/**
|
|
234
|
+
* ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
235
|
+
*/
|
|
236
|
+
elementId?: string;
|
|
237
|
+
/**
|
|
238
|
+
* data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
239
|
+
*/
|
|
240
|
+
elementTestId?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes.
|
|
243
|
+
*/
|
|
244
|
+
elementClass?: string | string[];
|
|
245
|
+
/**
|
|
246
|
+
* Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.
|
|
247
|
+
*/
|
|
248
|
+
elementAttribute?: {
|
|
249
|
+
[k: string]: string | number | boolean;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax.
|
|
253
|
+
*/
|
|
254
|
+
elementAria?: string;
|
|
255
|
+
} & WaitUntilRequiresASurface & AProcessSurfaceForbidsElementTargeting & AProcessSurfaceTakesProcessReadiness & ABrowserSurfaceTakesBrowserReadiness & AnAppSurfaceTakesAppReadiness & ABrowserEngineStringSurfaceTakesBrowserReadiness;
|
|
256
|
+
/**
|
|
257
|
+
* Sequence of keys to enter.
|
|
258
|
+
*/
|
|
259
|
+
export type TypeKeysSimple1 = string | string[];
|
|
260
|
+
/**
|
|
261
|
+
* The surface a step acts on. Omit to act on the active surface — the most recently opened, focused, or explicitly targeted surface, whatever its kind. Specifying a surface switches the active surface for the steps that follow. Supports background processes, browser windows/tabs, and native app windows.
|
|
262
|
+
*/
|
|
263
|
+
export type Surface = SurfaceByName | ProcessSurface | BrowserSurface2 | AppSurface2;
|
|
264
|
+
/**
|
|
265
|
+
* Name of the surface. A browser engine keyword (chrome|firefox|safari|webkit|edge) targets that browser; any other string names a background process. To target a browser window or tab, use the object form ({ "browser": …, "window": …, "tab": … }) — a plain string is never a window/tab name.
|
|
266
|
+
*/
|
|
267
|
+
export type SurfaceByName = string;
|
|
268
|
+
/**
|
|
269
|
+
* Which window to act on. Omit to use the active window.
|
|
270
|
+
*/
|
|
271
|
+
export type WindowTabSelector4 = ByIndex6 | ByName6 | ByCriteria6;
|
|
272
|
+
/**
|
|
273
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
274
|
+
*/
|
|
275
|
+
export type ByIndex6 = number;
|
|
276
|
+
/**
|
|
277
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
278
|
+
*/
|
|
279
|
+
export type ByName6 = string;
|
|
280
|
+
/**
|
|
281
|
+
* Which tab to act on. Omit to use the active tab. Without `window`, the selector searches every tab in creation order — including tabs the page opened itself.
|
|
282
|
+
*/
|
|
283
|
+
export type WindowTabSelector5 = ByIndex7 | ByName7 | ByCriteria7;
|
|
284
|
+
/**
|
|
285
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest.
|
|
286
|
+
*/
|
|
287
|
+
export type ByIndex7 = number;
|
|
288
|
+
/**
|
|
289
|
+
* Name assigned when the window/tab was opened (goTo `newTab`/`newWindow`). The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
290
|
+
*/
|
|
291
|
+
export type ByName7 = string;
|
|
292
|
+
/**
|
|
293
|
+
* Which app window to act on. Omit to use the active window. Apps have windows, no tabs.
|
|
294
|
+
*/
|
|
295
|
+
export type AppWindowSelector2 = ByIndex8 | ByName8 | ByCriteria8;
|
|
296
|
+
/**
|
|
297
|
+
* Index in creation order. Negative counts from the end; `-1` is the newest (e.g. a dialog the app just opened).
|
|
298
|
+
*/
|
|
299
|
+
export type ByIndex8 = number;
|
|
300
|
+
/**
|
|
301
|
+
* Assigned window name. The integer branch is listed first because Ajv validates with coerceTypes — string-first would coerce integer indexes into name strings.
|
|
302
|
+
*/
|
|
303
|
+
export type ByName8 = string;
|
|
304
|
+
/**
|
|
305
|
+
* Wait for a specific element to be present. At least one finding field must be specified.
|
|
306
|
+
*/
|
|
307
|
+
export type ElementCriteria = {
|
|
308
|
+
[k: string]: unknown;
|
|
309
|
+
} & {
|
|
310
|
+
/**
|
|
311
|
+
* Selector for the element to wait for. On browser surfaces, a CSS selector. On app surfaces, a native selector — an XPath (`//`), or `~` for an accessibility id; CSS is rejected at runtime.
|
|
312
|
+
*/
|
|
313
|
+
selector?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Text content the element must contain. Supports exact match or regex pattern using /pattern/ syntax.
|
|
316
|
+
*/
|
|
317
|
+
elementText?: string;
|
|
318
|
+
/**
|
|
319
|
+
* ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
320
|
+
*/
|
|
321
|
+
elementId?: string;
|
|
322
|
+
/**
|
|
323
|
+
* data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
324
|
+
*/
|
|
325
|
+
elementTestId?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes.
|
|
328
|
+
*/
|
|
329
|
+
elementClass?: string | string[];
|
|
330
|
+
/**
|
|
331
|
+
* Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.
|
|
332
|
+
*/
|
|
333
|
+
elementAttribute?: {
|
|
334
|
+
[k: string]: string | number | boolean;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax.
|
|
338
|
+
*/
|
|
339
|
+
elementAria?: string;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Wait for a specific element to exist on the app surface. Fields with no accessibility mapping on the target platform fail at runtime with the supported alternative named.
|
|
343
|
+
*/
|
|
344
|
+
export type ElementCriteria1 = {
|
|
345
|
+
[k: string]: unknown;
|
|
346
|
+
} & {
|
|
347
|
+
/**
|
|
348
|
+
* Selector for the element to wait for. On browser surfaces, a CSS selector. On app surfaces, a native selector — an XPath (`//`), or `~` for an accessibility id; CSS is rejected at runtime.
|
|
349
|
+
*/
|
|
350
|
+
selector?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Text content the element must contain. Supports exact match or regex pattern using /pattern/ syntax.
|
|
353
|
+
*/
|
|
354
|
+
elementText?: string;
|
|
355
|
+
/**
|
|
356
|
+
* ID attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
357
|
+
*/
|
|
358
|
+
elementId?: string;
|
|
359
|
+
/**
|
|
360
|
+
* data-testid attribute of the element to find. Supports exact match or regex pattern using /pattern/ syntax.
|
|
361
|
+
*/
|
|
362
|
+
elementTestId?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Class or array of classes that the element must have. Each class supports exact match or regex pattern using /pattern/ syntax. Element must have all specified classes.
|
|
365
|
+
*/
|
|
366
|
+
elementClass?: string | string[];
|
|
367
|
+
/**
|
|
368
|
+
* Object of attribute key-value pairs that the element must have. Values can be strings (supporting /pattern/ regex), numbers, or booleans. Boolean true matches attribute presence, false matches absence.
|
|
369
|
+
*/
|
|
370
|
+
elementAttribute?: {
|
|
371
|
+
[k: string]: string | number | boolean;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Computed accessible name of the element per ARIA specification. Supports exact match or regex pattern using /pattern/ syntax.
|
|
375
|
+
*/
|
|
376
|
+
elementAria?: string;
|
|
377
|
+
};
|
|
378
|
+
export interface BrowserSurface {
|
|
379
|
+
/**
|
|
380
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet — you can also open one explicitly with `startSurface`; other steps require it to already be open.
|
|
381
|
+
*/
|
|
382
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
383
|
+
/**
|
|
384
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
385
|
+
*/
|
|
386
|
+
name?: string;
|
|
387
|
+
window?: WindowTabSelector;
|
|
388
|
+
tab?: WindowTabSelector1;
|
|
389
|
+
}
|
|
390
|
+
export interface ByCriteria {
|
|
391
|
+
/**
|
|
392
|
+
* Name assigned when the window/tab was opened.
|
|
393
|
+
*/
|
|
394
|
+
name?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Index in creation order. Negative counts from the end.
|
|
397
|
+
*/
|
|
398
|
+
index?: number;
|
|
399
|
+
/**
|
|
400
|
+
* Page title to match. Substring, or /regex/.
|
|
401
|
+
*/
|
|
402
|
+
title?: string;
|
|
403
|
+
/**
|
|
404
|
+
* Page URL to match. Substring, or /regex/.
|
|
405
|
+
*/
|
|
406
|
+
url?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface ByCriteria1 {
|
|
409
|
+
/**
|
|
410
|
+
* Name assigned when the window/tab was opened.
|
|
411
|
+
*/
|
|
412
|
+
name?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Index in creation order. Negative counts from the end.
|
|
415
|
+
*/
|
|
416
|
+
index?: number;
|
|
417
|
+
/**
|
|
418
|
+
* Page title to match. Substring, or /regex/.
|
|
419
|
+
*/
|
|
420
|
+
title?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Page URL to match. Substring, or /regex/.
|
|
423
|
+
*/
|
|
424
|
+
url?: string;
|
|
425
|
+
}
|
|
426
|
+
export interface AppSurface {
|
|
427
|
+
/**
|
|
428
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
429
|
+
*/
|
|
430
|
+
app: string;
|
|
431
|
+
window?: AppWindowSelector;
|
|
432
|
+
}
|
|
433
|
+
export interface ByCriteria2 {
|
|
434
|
+
/**
|
|
435
|
+
* Assigned window name.
|
|
436
|
+
*/
|
|
437
|
+
name?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Index in creation order. Negative counts from the end.
|
|
440
|
+
*/
|
|
441
|
+
index?: number;
|
|
442
|
+
/**
|
|
443
|
+
* Window title to match. Substring, or /regex/.
|
|
444
|
+
*/
|
|
445
|
+
title?: string;
|
|
446
|
+
}
|
|
447
|
+
export interface BrowserSurface1 {
|
|
448
|
+
/**
|
|
449
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet — you can also open one explicitly with `startSurface`; other steps require it to already be open.
|
|
450
|
+
*/
|
|
451
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
452
|
+
/**
|
|
453
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
454
|
+
*/
|
|
455
|
+
name?: string;
|
|
456
|
+
window?: WindowTabSelector2;
|
|
457
|
+
tab?: WindowTabSelector3;
|
|
458
|
+
}
|
|
459
|
+
export interface ByCriteria3 {
|
|
460
|
+
/**
|
|
461
|
+
* Name assigned when the window/tab was opened.
|
|
462
|
+
*/
|
|
463
|
+
name?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Index in creation order. Negative counts from the end.
|
|
466
|
+
*/
|
|
467
|
+
index?: number;
|
|
468
|
+
/**
|
|
469
|
+
* Page title to match. Substring, or /regex/.
|
|
470
|
+
*/
|
|
471
|
+
title?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Page URL to match. Substring, or /regex/.
|
|
474
|
+
*/
|
|
475
|
+
url?: string;
|
|
476
|
+
}
|
|
477
|
+
export interface ByCriteria4 {
|
|
478
|
+
/**
|
|
479
|
+
* Name assigned when the window/tab was opened.
|
|
480
|
+
*/
|
|
481
|
+
name?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Index in creation order. Negative counts from the end.
|
|
484
|
+
*/
|
|
485
|
+
index?: number;
|
|
486
|
+
/**
|
|
487
|
+
* Page title to match. Substring, or /regex/.
|
|
488
|
+
*/
|
|
489
|
+
title?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Page URL to match. Substring, or /regex/.
|
|
492
|
+
*/
|
|
493
|
+
url?: string;
|
|
494
|
+
}
|
|
495
|
+
export interface AppSurface1 {
|
|
496
|
+
/**
|
|
497
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
498
|
+
*/
|
|
499
|
+
app: string;
|
|
500
|
+
window?: AppWindowSelector1;
|
|
501
|
+
}
|
|
502
|
+
export interface ByCriteria5 {
|
|
503
|
+
/**
|
|
504
|
+
* Assigned window name.
|
|
505
|
+
*/
|
|
506
|
+
name?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Index in creation order. Negative counts from the end.
|
|
509
|
+
*/
|
|
510
|
+
index?: number;
|
|
511
|
+
/**
|
|
512
|
+
* Window title to match. Substring, or /regex/.
|
|
513
|
+
*/
|
|
514
|
+
title?: string;
|
|
515
|
+
}
|
|
516
|
+
export interface FindElementAndClick {
|
|
517
|
+
/**
|
|
518
|
+
* Kind of click to perform.
|
|
519
|
+
*/
|
|
520
|
+
button?: "left" | "right" | "middle";
|
|
521
|
+
/**
|
|
522
|
+
* How long to hold the press, in milliseconds. A long-press (touch-and-hold) on mobile app surfaces; press-and-hold of the button on desktop apps and browsers. Omit for a normal click.
|
|
523
|
+
*/
|
|
524
|
+
duration?: number;
|
|
525
|
+
[k: string]: unknown;
|
|
526
|
+
}
|
|
527
|
+
export interface ProcessSurface {
|
|
528
|
+
/**
|
|
529
|
+
* Name of a background process started by a runShell/runCode `background` step.
|
|
530
|
+
*/
|
|
531
|
+
process: string;
|
|
532
|
+
}
|
|
533
|
+
export interface BrowserSurface2 {
|
|
534
|
+
/**
|
|
535
|
+
* Browser engine. Selects the browser surface with that engine (or the one named by `name`). A goTo step opens the browser if it isn't open yet — you can also open one explicitly with `startSurface`; other steps require it to already be open.
|
|
536
|
+
*/
|
|
537
|
+
browser: "chrome" | "firefox" | "safari" | "webkit" | "edge";
|
|
538
|
+
/**
|
|
539
|
+
* Name of the browser surface. Defaults to the engine name (the context's default browser registers under its engine). Assign distinct names to drive multiple browsers at once, including several of the same engine.
|
|
540
|
+
*/
|
|
541
|
+
name?: string;
|
|
542
|
+
window?: WindowTabSelector4;
|
|
543
|
+
tab?: WindowTabSelector5;
|
|
544
|
+
}
|
|
545
|
+
export interface ByCriteria6 {
|
|
546
|
+
/**
|
|
547
|
+
* Name assigned when the window/tab was opened.
|
|
548
|
+
*/
|
|
549
|
+
name?: string;
|
|
550
|
+
/**
|
|
551
|
+
* Index in creation order. Negative counts from the end.
|
|
552
|
+
*/
|
|
553
|
+
index?: number;
|
|
554
|
+
/**
|
|
555
|
+
* Page title to match. Substring, or /regex/.
|
|
556
|
+
*/
|
|
557
|
+
title?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Page URL to match. Substring, or /regex/.
|
|
560
|
+
*/
|
|
561
|
+
url?: string;
|
|
562
|
+
}
|
|
563
|
+
export interface ByCriteria7 {
|
|
564
|
+
/**
|
|
565
|
+
* Name assigned when the window/tab was opened.
|
|
566
|
+
*/
|
|
567
|
+
name?: string;
|
|
568
|
+
/**
|
|
569
|
+
* Index in creation order. Negative counts from the end.
|
|
570
|
+
*/
|
|
571
|
+
index?: number;
|
|
572
|
+
/**
|
|
573
|
+
* Page title to match. Substring, or /regex/.
|
|
574
|
+
*/
|
|
575
|
+
title?: string;
|
|
576
|
+
/**
|
|
577
|
+
* Page URL to match. Substring, or /regex/.
|
|
578
|
+
*/
|
|
579
|
+
url?: string;
|
|
580
|
+
}
|
|
581
|
+
export interface AppSurface2 {
|
|
582
|
+
/**
|
|
583
|
+
* Name of an app surface opened by `startSurface` (its `name`, or the default derived from the app identifier).
|
|
584
|
+
*/
|
|
585
|
+
app: string;
|
|
586
|
+
window?: AppWindowSelector2;
|
|
587
|
+
}
|
|
588
|
+
export interface ByCriteria8 {
|
|
589
|
+
/**
|
|
590
|
+
* Assigned window name.
|
|
591
|
+
*/
|
|
592
|
+
name?: string;
|
|
593
|
+
/**
|
|
594
|
+
* Index in creation order. Negative counts from the end.
|
|
595
|
+
*/
|
|
596
|
+
index?: number;
|
|
597
|
+
/**
|
|
598
|
+
* Window title to match. Substring, or /regex/.
|
|
599
|
+
*/
|
|
600
|
+
title?: string;
|
|
601
|
+
}
|
|
602
|
+
export interface ProcessReadiness {
|
|
603
|
+
/**
|
|
604
|
+
* Wait until combined stdout+stderr matches. Substring, or /regex/.
|
|
605
|
+
*/
|
|
606
|
+
stdio?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Fixed delay (ms).
|
|
609
|
+
*/
|
|
610
|
+
delayMs?: number;
|
|
611
|
+
}
|
|
612
|
+
export interface BrowserReadiness {
|
|
613
|
+
/**
|
|
614
|
+
* Wait for network activity to be idle (no new requests) for this duration in milliseconds.
|
|
615
|
+
*/
|
|
616
|
+
networkIdleTime?: number;
|
|
617
|
+
/**
|
|
618
|
+
* Wait for DOM mutations to stop for this duration in milliseconds.
|
|
619
|
+
*/
|
|
620
|
+
domIdleTime?: number;
|
|
621
|
+
find?: ElementCriteria;
|
|
622
|
+
}
|
|
623
|
+
export interface AppReadiness {
|
|
624
|
+
/**
|
|
625
|
+
* Fixed delay (ms).
|
|
626
|
+
*/
|
|
627
|
+
delayMs?: number;
|
|
628
|
+
find?: ElementCriteria1;
|
|
629
|
+
}
|
|
630
|
+
export interface WaitUntilRequiresASurface {
|
|
631
|
+
[k: string]: unknown;
|
|
632
|
+
}
|
|
633
|
+
export interface AProcessSurfaceForbidsElementTargeting {
|
|
634
|
+
[k: string]: unknown;
|
|
635
|
+
}
|
|
636
|
+
export interface AProcessSurfaceTakesProcessReadiness {
|
|
637
|
+
[k: string]: unknown;
|
|
638
|
+
}
|
|
639
|
+
export interface ABrowserSurfaceTakesBrowserReadiness {
|
|
640
|
+
[k: string]: unknown;
|
|
641
|
+
}
|
|
642
|
+
export interface AnAppSurfaceTakesAppReadiness {
|
|
643
|
+
[k: string]: unknown;
|
|
644
|
+
}
|
|
645
|
+
export interface ABrowserEngineStringSurfaceTakesBrowserReadiness {
|
|
646
|
+
[k: string]: unknown;
|
|
647
|
+
}
|
|
16
648
|
//# sourceMappingURL=find_v3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find_v3.d.ts","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/find_v3.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;AAC3D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"find_v3.d.ts","sourceRoot":"","sources":["../../../../../src/common/src/types/generated/find_v3.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;AAC3D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,GAAG;IACF;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,GAAG,cAAc,GAAG,UAAU,CAAC;IAC/D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC;;OAEG;IACH,gBAAgB,CAAC,EAAE;QACjB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;KACxC,CAAC;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;I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