@applitools/nlp-web-runner 5.2.2 → 5.3.0
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/dist/_inline/_chunks/rolldown-runtime-D7D4PA-g.js +1 -1
- package/dist/_inline/assets/{extract-ax-tree-CoBL9ja1.js → extract-ax-tree-DYEbctJp.js} +1 -1
- package/dist/_inline/assets/{extract-pdf-ax-tree-3Y3LHj7T.js → extract-pdf-ax-tree-CxF87TEH.js} +1 -1
- package/dist/_inline/assets/{index-DwFhv7rA.html → index-C5rB_Uzy.html} +5937 -4680
- package/dist/_inline/assets/{recorder-eqjB4Xxs.js → recorder-BLcQX8wr.js} +2 -2
- package/dist/_inline/nlp-runner/web/index.d.ts +11 -47
- package/dist/_inline/nlp-runner/web/index.js +1 -1
- package/package.json +3 -3
|
@@ -6,10 +6,10 @@ import { Protocol } from "devtools-protocol";
|
|
|
6
6
|
type WebDriver = never;
|
|
7
7
|
import { ProtocolMapping } from "devtools-protocol/types/protocol-mapping.js";
|
|
8
8
|
|
|
9
|
-
//#region dist/_inline/_chunks/node-
|
|
9
|
+
//#region dist/_inline/_chunks/node-Cd1bkA9w.d.ts
|
|
10
10
|
//#region src/automator.d.ts
|
|
11
11
|
interface Automator {
|
|
12
|
-
readonly type: 'web' | '
|
|
12
|
+
readonly type: 'web' | 'mobile';
|
|
13
13
|
readonly blocked: boolean;
|
|
14
14
|
captureScreenshot(): Promise<string>;
|
|
15
15
|
stabilize(stage: 'basic' | 'strict' | 'paranoid', options?: {
|
|
@@ -240,7 +240,7 @@ declare class Rectangle {
|
|
|
240
240
|
//#region src/patterns.d.ts
|
|
241
241
|
type Match = (text: string) => string | null;
|
|
242
242
|
//#endregion
|
|
243
|
-
//#region dist/_inline/_chunks/script-
|
|
243
|
+
//#region dist/_inline/_chunks/script-6O13rCLT.d.ts
|
|
244
244
|
//#region src/port.d.ts
|
|
245
245
|
interface PortMessageEvent<TName extends string = string, TPayload = unknown> extends Event {
|
|
246
246
|
readonly name: TName;
|
|
@@ -1131,7 +1131,7 @@ declare class Target extends EventTargetNode<TargetEventMap> {
|
|
|
1131
1131
|
}: TargetOptions);
|
|
1132
1132
|
frames(): Generator<Frame, void, unknown>;
|
|
1133
1133
|
targets(): Generator<Target, void, unknown>;
|
|
1134
|
-
wait(event: 'stable' | 'initialized' | 'windowResolved' | 'navigated' | 'pendingRequests' | 'dialogOpened', {
|
|
1134
|
+
wait(event: 'stable' | 'attached' | 'initialized' | 'windowResolved' | 'navigated' | 'pendingRequests' | 'dialogOpened', {
|
|
1135
1135
|
signal
|
|
1136
1136
|
}?: {
|
|
1137
1137
|
signal?: AbortSignal;
|
|
@@ -7702,7 +7702,8 @@ interface AXOption {
|
|
|
7702
7702
|
}
|
|
7703
7703
|
interface AXState {
|
|
7704
7704
|
disabled?: boolean;
|
|
7705
|
-
|
|
7705
|
+
/** Not a hit target (e.g. `pointer-events: none` on web, `isUserInteractionEnabled == false` on iOS). Absent means interactable. */
|
|
7706
|
+
inert?: boolean;
|
|
7706
7707
|
focused?: boolean;
|
|
7707
7708
|
checked?: boolean;
|
|
7708
7709
|
}
|
|
@@ -8227,7 +8228,7 @@ type DeviceOptions = {
|
|
|
8227
8228
|
connection: Connection$2;
|
|
8228
8229
|
};
|
|
8229
8230
|
declare class Device implements Automator {
|
|
8230
|
-
readonly type = "
|
|
8231
|
+
readonly type = "mobile";
|
|
8231
8232
|
readonly connection: Connection$2;
|
|
8232
8233
|
readonly blocked = false;
|
|
8233
8234
|
constructor({
|
|
@@ -8749,7 +8750,7 @@ declare abstract class Handler$1<TAutomator extends Automator, TInstruction exte
|
|
|
8749
8750
|
evaluate<TValue>(value: TValue): Promise<EvaluatedExpression<TValue>>;
|
|
8750
8751
|
element(descriptor: ResolvedElementDescriptor): Promise<{
|
|
8751
8752
|
web: IAXNodeView<WebNode> | null;
|
|
8752
|
-
|
|
8753
|
+
mobile: IAXNodeView<IOSNode> | null;
|
|
8753
8754
|
}[TAutomator["type"]]>;
|
|
8754
8755
|
capture(): Promise<Capture | undefined>;
|
|
8755
8756
|
before(): Promise<void>;
|
|
@@ -9316,44 +9317,7 @@ declare const handlers: {
|
|
|
9316
9317
|
try: typeof TryHandler;
|
|
9317
9318
|
if: typeof IfHandler;
|
|
9318
9319
|
};
|
|
9319
|
-
|
|
9320
|
-
check: typeof CheckHandler;
|
|
9321
|
-
click: typeof ClickHandler;
|
|
9322
|
-
find: typeof FindHandler;
|
|
9323
|
-
focus: typeof FocusHandler;
|
|
9324
|
-
scroll: typeof ScrollHandler;
|
|
9325
|
-
type: typeof TypeHandler;
|
|
9326
|
-
assert: typeof AssertHandler;
|
|
9327
|
-
wait: typeof WaitHandler;
|
|
9328
|
-
empty: typeof EmptyHandler;
|
|
9329
|
-
comment: typeof EmptyHandler;
|
|
9330
|
-
fetch: typeof FetchHandler;
|
|
9331
|
-
'set variable': typeof SetVariableHandler;
|
|
9332
|
-
'visual check': typeof VisualCheckHandler;
|
|
9333
|
-
intent: typeof IntentHandler;
|
|
9334
|
-
'set preinstructions': typeof DefinePreinstructionsHandler;
|
|
9335
|
-
'drop preinstructions': typeof DefinePreinstructionsHandler;
|
|
9336
|
-
'initialize scope': typeof InitializeScopeHandler;
|
|
9337
|
-
try: typeof TryHandler;
|
|
9338
|
-
if: typeof IfHandler;
|
|
9339
|
-
"set value": never;
|
|
9340
|
-
evaluate: never;
|
|
9341
|
-
clear: never;
|
|
9342
|
-
erase: never;
|
|
9343
|
-
"hit key": never;
|
|
9344
|
-
search: never;
|
|
9345
|
-
hover: never;
|
|
9346
|
-
alert: never;
|
|
9347
|
-
navigate: never;
|
|
9348
|
-
"navigate pdf": never;
|
|
9349
|
-
refresh: never;
|
|
9350
|
-
"create target": never;
|
|
9351
|
-
"close target": never;
|
|
9352
|
-
close: never;
|
|
9353
|
-
"switch target": never;
|
|
9354
|
-
go: never;
|
|
9355
|
-
};
|
|
9356
|
-
android: {
|
|
9320
|
+
mobile: {
|
|
9357
9321
|
check: typeof CheckHandler;
|
|
9358
9322
|
click: typeof ClickHandler;
|
|
9359
9323
|
find: typeof FindHandler;
|
|
@@ -9576,7 +9540,7 @@ type SubinstructionExecutionStartedDetails = {
|
|
|
9576
9540
|
};
|
|
9577
9541
|
};
|
|
9578
9542
|
type StepMetrics = {
|
|
9579
|
-
platform?: 'web' | '
|
|
9543
|
+
platform?: 'web' | 'mobile';
|
|
9580
9544
|
stabilizeMs?: number;
|
|
9581
9545
|
handleMs?: number;
|
|
9582
9546
|
findStrategy?: 'columbus' | 'selector';
|
|
@@ -9664,7 +9628,7 @@ type FindNodeOptions = {
|
|
|
9664
9628
|
};
|
|
9665
9629
|
type FindNodeResult<TAutomator extends Automator> = {
|
|
9666
9630
|
web: IAXNodeView<WebNode> | null;
|
|
9667
|
-
|
|
9631
|
+
mobile: IAXNodeView<IOSNode$1> | null;
|
|
9668
9632
|
}[TAutomator['type']];
|
|
9669
9633
|
declare class AXOps<TAutomator extends Automator = Automator> {
|
|
9670
9634
|
#private;
|