@applitools/nlp-web-runner 5.4.2 → 5.5.0-dev.00a23d5b2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Z=y;function y(j,a){j=j-0x1ea;var t=T();var J=t[j];if(y['KVOVJf']===undefined){var p=function(I){var G='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var V='',m='';for(var x=0x0,n,U,q=0x0;U=I['charAt'](q++);~U&&(n=x%0x4?n*0x40+U:U,x++%0x4)?V+=String['fromCharCode'](0xff&n>>(-0x2*x&0x6)):0x0){U=G['indexOf'](U);}for(var S=0x0,g=V['length'];S<g;S++){m+='%'+('00'+V['charCodeAt'](S)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(m);};y['rralPf']=p,y['mKMWjl']={},y['KVOVJf']=!![];}var K=t[0x0],Z=j+K,B=y['mKMWjl'][Z];return!B?(J=y['rralPf'](J),y['mKMWjl'][Z]=J):J=B,J;}(function(j,a){var K=y,t=j();while(!![]){try{var J=-parseInt(K(0x1ea))/0x1*(parseInt(K(0x1f4))/0x2)+parseInt(K(0x1ee))/0x3*(parseInt(K(0x1f3))/0x4)+parseInt(K(0x1f7))/0x5*(-parseInt(K(0x1f6))/0x6)+parseInt(K(0x1f0))/0x7*(parseInt(K(0x1ef))/0x8)+parseInt(K(0x1ed))/0x9*(-parseInt(K(0x1f5))/0xa)+-parseInt(K(0x1f2))/0xb+parseInt(K(0x1ec))/0xc;if(J===a)break;else t['push'](t['shift']());}catch(p){t['push'](t['shift']());}}}(T,0xaa55e));var __defProp=Object[Z(0x1f1)],__exportAll=(j,a)=>{var B=Z;let t={};for(var J in j)__defProp(t,J,{'get':j[J],'enumerable':!![]});if(!a)__defProp(t,Symbol[B(0x1f8)],{'value':B(0x1eb)});return t;};function T(){var I=['nti4nZi5tK9oqufw','mty4odCYzhfhtNro','n1POwhLgAa','zgvMAw5LuhjVCgvYDhK','mZu4nZuYouTTAxndDG','mtjMy1Drvhq','nta5nJa2EMrlrKvc','mJbPte5ssMe','mte2mZuZmNjPBfrXCG','mJb1quHUChq','Dg9tDhjPBMDuywC','ngXns0fgAq','tw9KDwXL','mZG5nZq0mJHQyNbuq0e','ndqWntm4m0T1rNPtsa'];T=function(){return I;};return T();}export{__exportAll as t};
|
|
@@ -246,6 +246,10 @@ type Action<TType extends string> = Extract<EmptyAction | CommentAction | SetVar
|
|
|
246
246
|
type: TType;
|
|
247
247
|
}>;
|
|
248
248
|
type Instruction = Action<any> | ControlFlow;
|
|
249
|
+
type Program$1 = Instruction[];
|
|
250
|
+
type SealedProgram = {
|
|
251
|
+
__seal?: never;
|
|
252
|
+
};
|
|
249
253
|
type Primitive<TPrimitiveName extends string> = TPrimitiveName extends 'null' ? null : TPrimitiveName extends 'boolean' ? boolean : TPrimitiveName extends 'number' ? number : TPrimitiveName extends 'string' ? string : TPrimitiveName extends 'any' ? Any : unknown;
|
|
250
254
|
type PrimitiveName<TPrimitive = Any> = TPrimitive extends null ? 'null' : TPrimitive extends boolean ? 'boolean' : TPrimitive extends number ? 'number' : TPrimitive extends string ? 'string' : TPrimitive extends Any ? 'any' : never;
|
|
251
255
|
type Reference<TType> = {
|
|
@@ -652,19 +656,22 @@ declare class EventTargetNode<TEventMap extends Record<string, Event>> extends E
|
|
|
652
656
|
constructor();
|
|
653
657
|
}
|
|
654
658
|
declare namespace logger_d_exports {
|
|
655
|
-
export { Logger$1 as Logger, debug, error$1 as error, log, trace, use };
|
|
659
|
+
export { LogEventCatalog, Logger$1 as Logger, debug, error$1 as error, log, trace, use };
|
|
656
660
|
}
|
|
657
661
|
interface Logger$1 {
|
|
658
|
-
log(
|
|
659
|
-
error(
|
|
660
|
-
trace(
|
|
661
|
-
debug(
|
|
662
|
+
log(type: string, data: Record<string, unknown>): void;
|
|
663
|
+
error(type: string, data: Record<string, unknown>): void;
|
|
664
|
+
trace(type: string, data: Record<string, unknown>): void;
|
|
665
|
+
debug(type: string, data: Record<string, unknown>): void;
|
|
662
666
|
}
|
|
667
|
+
interface LogEventCatalog {}
|
|
663
668
|
declare function use(logger: Logger$1 | null | undefined): void;
|
|
664
|
-
declare function log(
|
|
665
|
-
declare function error$1(
|
|
666
|
-
declare function trace(
|
|
667
|
-
declare function debug(
|
|
669
|
+
declare function log<TType extends keyof LogEventCatalog>(type: TType, data: LogEventCatalog[TType]): void;
|
|
670
|
+
declare function error$1<TType extends keyof LogEventCatalog>(type: TType, data: LogEventCatalog[TType]): void;
|
|
671
|
+
declare function trace<TType extends keyof LogEventCatalog>(type: TType, data: LogEventCatalog[TType]): void;
|
|
672
|
+
declare function debug<TType extends keyof LogEventCatalog>(type: TType, data: LogEventCatalog[TType]): void; //#endregion
|
|
673
|
+
//#region src/log/event-logger.d.ts
|
|
674
|
+
//#endregion
|
|
668
675
|
//#region src/color.d.ts
|
|
669
676
|
type ColorLike = Record<'r' | 'g' | 'b' | 'a', number>;
|
|
670
677
|
//#endregion
|
|
@@ -766,7 +773,7 @@ declare class Rectangle {
|
|
|
766
773
|
//#region src/patterns.d.ts
|
|
767
774
|
type Match = (text: string) => string | null;
|
|
768
775
|
//#endregion
|
|
769
|
-
//#region dist/_inline/_chunks/script-
|
|
776
|
+
//#region dist/_inline/_chunks/script-De9VUKC6.d.ts
|
|
770
777
|
//#region src/port.d.ts
|
|
771
778
|
interface PortMessageEvent<TName extends string = string, TPayload = unknown> extends Event {
|
|
772
779
|
readonly name: TName;
|
|
@@ -1023,7 +1030,7 @@ interface Request {
|
|
|
1023
1030
|
readonly headers: Record<string, string>;
|
|
1024
1031
|
body(): Promise<Uint8Array>;
|
|
1025
1032
|
}
|
|
1026
|
-
interface Response {
|
|
1033
|
+
interface Response$1 {
|
|
1027
1034
|
readonly request: Request;
|
|
1028
1035
|
readonly status: number;
|
|
1029
1036
|
readonly error?: string;
|
|
@@ -1089,7 +1096,7 @@ declare class InterceptedRequest extends Intercepted implements Request {
|
|
|
1089
1096
|
body(): Promise<Uint8Array>;
|
|
1090
1097
|
}
|
|
1091
1098
|
declare function makeInterceptedResponse(options: InterceptedOptions): InterceptedResponse;
|
|
1092
|
-
declare class InterceptedResponse extends Intercepted implements Response {
|
|
1099
|
+
declare class InterceptedResponse extends Intercepted implements Response$1 {
|
|
1093
1100
|
#private;
|
|
1094
1101
|
readonly stage: "response";
|
|
1095
1102
|
readonly request: Request;
|
|
@@ -1379,7 +1386,7 @@ declare class Browser extends EventTargetNode<BrowserEventMap> implements Automa
|
|
|
1379
1386
|
stabilize(stage: 'basic' | 'strict' | 'paranoid', {
|
|
1380
1387
|
signal,
|
|
1381
1388
|
timeout
|
|
1382
|
-
}
|
|
1389
|
+
}?: {
|
|
1383
1390
|
signal?: AbortSignal;
|
|
1384
1391
|
timeout?: number;
|
|
1385
1392
|
}): Promise<void>;
|
|
@@ -1917,7 +1924,7 @@ declare class Frame extends EventTargetNode<FrameEventMap> {
|
|
|
1917
1924
|
getOwnerNode(): Promise<WebNode<HTMLIFrameElement> | null>;
|
|
1918
1925
|
$<TNode extends globalThis.Node = Element | Text>(selector: string | string[]): Promise<WebNode<TNode> | null>;
|
|
1919
1926
|
$$<TNode extends globalThis.Node = Element | Text>(selector: string | string[]): Promise<WebNode<TNode>[]>;
|
|
1920
|
-
fetch(url: string, options?: FrameFetchOptions): Promise<Response>;
|
|
1927
|
+
fetch(url: string, options?: FrameFetchOptions): Promise<Response$1>;
|
|
1921
1928
|
execute<TResult = unknown, TArgs extends readonly any[] = any[]>(fn: EvaluationFunction<TArgs, TResult>, args?: TArgs, options?: EvaluationOptions): Promise<EvaluationResult<TResult>>;
|
|
1922
1929
|
defaultExecute<TResult = unknown, TArgs extends readonly any[] = any[]>(fn: EvaluationFunction<TArgs, TResult>, args?: TArgs, options?: EvaluationOptions): Promise<EvaluationResult<TResult>>;
|
|
1923
1930
|
evaluate<TResult = unknown>(expression: EvaluationExpression<TResult>, options?: EvaluationOptions): Promise<EvaluationResult<TResult>>;
|
|
@@ -8172,6 +8179,7 @@ declare class HarRecorderStatsChangedEvent extends Event {
|
|
|
8172
8179
|
} //#endregion
|
|
8173
8180
|
//#endregion
|
|
8174
8181
|
//#region dist/_inline/ax-tree/public/index.d.ts
|
|
8182
|
+
//#endregion
|
|
8175
8183
|
//#region src/public/types.d.ts
|
|
8176
8184
|
interface AXTreeFlat<TNode> {
|
|
8177
8185
|
nodes: AXNodeFlat<TNode>[];
|
|
@@ -8188,6 +8196,7 @@ interface AXTreeFlat<TNode> {
|
|
|
8188
8196
|
height: number;
|
|
8189
8197
|
};
|
|
8190
8198
|
direction: 'ltr' | 'rtl';
|
|
8199
|
+
version?: string;
|
|
8191
8200
|
}
|
|
8192
8201
|
interface AXNodeFlat<TNode> {
|
|
8193
8202
|
node: TNode;
|
|
@@ -8381,6 +8390,7 @@ interface IAXTreeView<TNode = unknown> extends Iterable<IAXNodeView<TNode>> {
|
|
|
8381
8390
|
height: number;
|
|
8382
8391
|
};
|
|
8383
8392
|
readonly direction: 'ltr' | 'rtl';
|
|
8393
|
+
readonly version?: string;
|
|
8384
8394
|
readonly root: IAXNodeView<TNode>;
|
|
8385
8395
|
readonly nodeCount: number;
|
|
8386
8396
|
readonly hosts: IAXNodeView<TNode>[];
|
|
@@ -8396,6 +8406,7 @@ interface IAXTreeView<TNode = unknown> extends Iterable<IAXNodeView<TNode>> {
|
|
|
8396
8406
|
height: number;
|
|
8397
8407
|
};
|
|
8398
8408
|
direction: 'ltr' | 'rtl';
|
|
8409
|
+
version?: string;
|
|
8399
8410
|
root: AXNodeViewJSON$1<TNode>;
|
|
8400
8411
|
hosts: AXNodeViewJSON$1<TNode>[];
|
|
8401
8412
|
popups: AXNodeViewJSON$1<TNode>[];
|
|
@@ -8494,12 +8505,21 @@ type FindCandidatesOptions = {
|
|
|
8494
8505
|
debug?: {
|
|
8495
8506
|
reason?: FindCandidateReason;
|
|
8496
8507
|
};
|
|
8508
|
+
/**
|
|
8509
|
+
* Whether required-type matching may fall back to the legacy safety-net score (0.01) for
|
|
8510
|
+
* backward-compatible types when classification finds no real score. Defaults to true —
|
|
8511
|
+
* element finding must locate *something* for old descriptors. Search-style consumers pass
|
|
8512
|
+
* false so "all buttons" doesn't include nodes that merely might be buttons.
|
|
8513
|
+
*/
|
|
8514
|
+
useBackwardCompatibleTypeScore?: boolean;
|
|
8497
8515
|
}; //#endregion
|
|
8498
8516
|
//#region src/public/ax-provider.d.ts
|
|
8499
8517
|
interface AXProvider {
|
|
8500
|
-
makeAXTree<TNode>(flat: AXTreeFlat<TNode>): IAXTreeView<TNode
|
|
8501
|
-
describeAXNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): ResolvedElementDescriptor | undefined
|
|
8502
|
-
findAXNode<TNode>(nodes: Iterable<IAXNodeView<TNode>>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): CandidateMetric | null
|
|
8518
|
+
makeAXTree<TNode>(flat: AXTreeFlat<TNode>): Promise<IAXTreeView<TNode>>;
|
|
8519
|
+
describeAXNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): Promise<ResolvedElementDescriptor | undefined>;
|
|
8520
|
+
findAXNode<TNode>(nodes: Iterable<IAXNodeView<TNode>>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetric | null>;
|
|
8521
|
+
/** Optional: remote providers may not support returning the full ranked candidate list. */
|
|
8522
|
+
findAXNodes?<TNode>(nodes: Iterable<IAXNodeView<TNode>>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetric[]>;
|
|
8503
8523
|
} //#endregion
|
|
8504
8524
|
//#endregion
|
|
8505
8525
|
//#region src/scope.d.ts
|
|
@@ -9197,7 +9217,7 @@ type RunResult$1<TResult extends HandleResult> = TResult & {
|
|
|
9197
9217
|
before?: Capture;
|
|
9198
9218
|
after?: Capture;
|
|
9199
9219
|
values: UsedValues;
|
|
9200
|
-
metrics?:
|
|
9220
|
+
metrics?: InstructionMetrics;
|
|
9201
9221
|
};
|
|
9202
9222
|
type HandleResult = {
|
|
9203
9223
|
status: string;
|
|
@@ -9230,6 +9250,12 @@ type ErrorResult = {
|
|
|
9230
9250
|
type Capture = {
|
|
9231
9251
|
image: string;
|
|
9232
9252
|
elements?: ElementMarker[];
|
|
9253
|
+
viewport?: {
|
|
9254
|
+
width: number;
|
|
9255
|
+
height: number;
|
|
9256
|
+
scrollX: number;
|
|
9257
|
+
scrollY: number;
|
|
9258
|
+
};
|
|
9233
9259
|
};
|
|
9234
9260
|
type ElementMarker = {
|
|
9235
9261
|
region: {
|
|
@@ -9255,7 +9281,7 @@ declare abstract class Handler$1<TAutomator extends Automator, TInstruction exte
|
|
|
9255
9281
|
readonly expectedNavigationStatuses: number[];
|
|
9256
9282
|
get action(): TInstruction extends Action<any> ? TInstruction : unknown;
|
|
9257
9283
|
get stack(): ValuesStack;
|
|
9258
|
-
get metrics():
|
|
9284
|
+
get metrics(): InstructionMetrics;
|
|
9259
9285
|
get findTimeout(): any;
|
|
9260
9286
|
get frameStabilityTimeout(): any;
|
|
9261
9287
|
get navigateTimeout(): any;
|
|
@@ -9947,7 +9973,10 @@ type RunnerOptions<TAutomator extends Automator> = {
|
|
|
9947
9973
|
type RunOptions = {
|
|
9948
9974
|
stepIndex?: number;
|
|
9949
9975
|
signal?: AbortSignal;
|
|
9950
|
-
shouldCapture?: boolean;
|
|
9976
|
+
shouldCapture?: boolean;
|
|
9977
|
+
/** Opaque id echoed on each `subinstructionExecutionStarted` so a caller can tie the resulting
|
|
9978
|
+
* instruction logs back to the run it triggered (e.g. the devtools instruction details view). */
|
|
9979
|
+
correlationId?: string; /** @internal */
|
|
9951
9980
|
runningPreinstructions?: boolean; /** @internal for BE usage only */
|
|
9952
9981
|
shouldNotThrowOnUnexpectedNavigationStatus?: boolean; /** @internal for BE usage only */
|
|
9953
9982
|
expectedNavigationStatuses?: number[];
|
|
@@ -10008,7 +10037,7 @@ declare class Runner<TAutomator extends Automator> extends EventTargetNode<Runne
|
|
|
10008
10037
|
}>);
|
|
10009
10038
|
get status(): ProgressStatus;
|
|
10010
10039
|
constructor(options: RunnerOptions<TAutomator>);
|
|
10011
|
-
run(input: string |
|
|
10040
|
+
run(input: string | Program$1 | SealedProgram, options?: RunOptions): Promise<RunResult>;
|
|
10012
10041
|
handle<TInstruction extends Instruction>(instruction: TInstruction, options?: RunOptions): Promise<HandlerResult<TAutomator, TInstruction>>;
|
|
10013
10042
|
/**
|
|
10014
10043
|
* Locates an element on the page and returns its node, or `null` when nothing matches.
|
|
@@ -10084,7 +10113,7 @@ type SubinstructionExecutionStartedDetails = {
|
|
|
10084
10113
|
instruction: Instruction;
|
|
10085
10114
|
};
|
|
10086
10115
|
};
|
|
10087
|
-
type
|
|
10116
|
+
type InstructionMetrics = {
|
|
10088
10117
|
platform?: 'web' | 'mobile';
|
|
10089
10118
|
stabilizeMs?: number;
|
|
10090
10119
|
handleMs?: number;
|
|
@@ -10102,7 +10131,7 @@ type SubinstructionExecutionFinishedDetails = {
|
|
|
10102
10131
|
duration: number;
|
|
10103
10132
|
status: HandlerResult<Automator, Instruction>['status'];
|
|
10104
10133
|
errorcode?: ErrorCode;
|
|
10105
|
-
metrics?:
|
|
10134
|
+
metrics?: InstructionMetrics;
|
|
10106
10135
|
};
|
|
10107
10136
|
};
|
|
10108
10137
|
type RecorderLogDetails = RecordingStartedDetails | RecordingStopedDetails | InstructionRecordedDetails | ElementSelectionStartedDetails | ElementSelectionStoppedDetails | ElementDescriptorGeneratedDetails | ElementSelectorGeneratedDetails | RecorderErrorDetails;
|
|
@@ -10118,7 +10147,7 @@ type InstructionRecordedDetails = {
|
|
|
10118
10147
|
instruction: string;
|
|
10119
10148
|
guid: string;
|
|
10120
10149
|
analytics?: any;
|
|
10121
|
-
metrics?:
|
|
10150
|
+
metrics?: InstructionMetrics;
|
|
10122
10151
|
};
|
|
10123
10152
|
};
|
|
10124
10153
|
type ElementSelectionStartedDetails = {
|
|
@@ -10134,7 +10163,7 @@ type ElementDescriptorGeneratedDetails = {
|
|
|
10134
10163
|
type: 'elementDescriptorGenerated';
|
|
10135
10164
|
data: {
|
|
10136
10165
|
description: string;
|
|
10137
|
-
metrics?:
|
|
10166
|
+
metrics?: InstructionMetrics;
|
|
10138
10167
|
};
|
|
10139
10168
|
};
|
|
10140
10169
|
type ElementSelectorGeneratedDetails = {
|
|
@@ -10161,7 +10190,11 @@ declare class LogEvent extends CustomEvent<LogDetails & {
|
|
|
10161
10190
|
timestamp: number;
|
|
10162
10191
|
}> {
|
|
10163
10192
|
readonly component: 'runner' | 'recorder';
|
|
10164
|
-
constructor(details: LogDetails
|
|
10193
|
+
constructor(details: LogDetails & {
|
|
10194
|
+
timestamp?: number;
|
|
10195
|
+
});
|
|
10196
|
+
/** An already-dispatched event can't be dispatched again — re-dispatchers need a fresh instance. */
|
|
10197
|
+
clone(): LogEvent;
|
|
10165
10198
|
}
|
|
10166
10199
|
//#endregion
|
|
10167
10200
|
//#region src/ax/ax-ops.d.ts
|
|
@@ -10169,7 +10202,7 @@ type FindNodeOptions = {
|
|
|
10169
10202
|
stack: ValuesStack;
|
|
10170
10203
|
timeout?: number;
|
|
10171
10204
|
signal?: AbortSignal;
|
|
10172
|
-
metrics?:
|
|
10205
|
+
metrics?: InstructionMetrics;
|
|
10173
10206
|
};
|
|
10174
10207
|
type FindNodeResult<TAutomator extends Automator> = {
|
|
10175
10208
|
web: IAXNodeView<WebNode> | null;
|
|
@@ -10181,9 +10214,19 @@ declare class AXOps<TAutomator extends Automator = Automator> {
|
|
|
10181
10214
|
readonly axProvider: AXProvider;
|
|
10182
10215
|
constructor(automator: TAutomator, axProvider: AXProvider);
|
|
10183
10216
|
extractTree<TNode = unknown>(): Promise<IAXTreeView<TNode>>;
|
|
10184
|
-
makeTree<TNode>(flat: AXTreeFlat<TNode>): IAXTreeView<TNode
|
|
10185
|
-
findCandidate<TNode>(tree: IAXTreeView<TNode>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): CandidateMetric | null
|
|
10186
|
-
|
|
10217
|
+
makeTree<TNode>(flat: AXTreeFlat<TNode>): Promise<IAXTreeView<TNode>>;
|
|
10218
|
+
findCandidate<TNode>(tree: IAXTreeView<TNode>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetric | null>;
|
|
10219
|
+
findCandidates<TNode>(tree: IAXTreeView<TNode>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetric[]>;
|
|
10220
|
+
/**
|
|
10221
|
+
* Search-oriented "find all": ranked candidates matching the descriptor, and — when the
|
|
10222
|
+
* descriptor combines a title with a type — the remaining candidates of that type appended
|
|
10223
|
+
* after the title matches. A search for "ok button" should surface ALL buttons with the "ok"
|
|
10224
|
+
* ones ranked first, whereas plain candidate matching filters non-matching titles out entirely.
|
|
10225
|
+
* The legacy safety-net type score is disabled: "all buttons" must not include nodes that
|
|
10226
|
+
* merely might be buttons.
|
|
10227
|
+
*/
|
|
10228
|
+
searchCandidates<TNode>(tree: IAXTreeView<TNode>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetric[]>;
|
|
10229
|
+
describeNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): Promise<ResolvedElementDescriptor | undefined>;
|
|
10187
10230
|
findNode(descriptor: ResolvedElementDescriptor, options: FindNodeOptions): Promise<FindNodeResult<TAutomator>>;
|
|
10188
10231
|
}
|
|
10189
10232
|
//#endregion
|
|
@@ -10657,12 +10700,33 @@ type DescribeAXNodeResponse = Omit<ResolvedElementDescriptor, 'node'> & {
|
|
|
10657
10700
|
nodeIndex?: number;
|
|
10658
10701
|
};
|
|
10659
10702
|
declare abstract class RemoteAXProvider implements AXProvider {
|
|
10660
|
-
makeAXTree<TNode>(flat: AXTreeFlat<TNode>): IAXTreeView<TNode
|
|
10661
|
-
describeAXNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): ResolvedElementDescriptor | undefined
|
|
10662
|
-
findAXNode<TNode>(nodes: Iterable<IAXNodeView<TNode>>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): CandidateMetric | null
|
|
10663
|
-
protected abstract _rqMakeAXTree<TNode>(flat: AXTreeFlat<TNode>): MakeAXTreeResponse<TNode
|
|
10664
|
-
protected abstract _rqDescribeAXNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): DescribeAXNodeResponse | undefined
|
|
10665
|
-
protected abstract _rqFindAXNode<TNode>(nodes: IAXNodeView<TNode>[], descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): CandidateMetricResponse | null
|
|
10703
|
+
makeAXTree<TNode>(flat: AXTreeFlat<TNode>): Promise<IAXTreeView<TNode>>;
|
|
10704
|
+
describeAXNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): Promise<ResolvedElementDescriptor | undefined>;
|
|
10705
|
+
findAXNode<TNode>(nodes: Iterable<IAXNodeView<TNode>>, descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetric | null>;
|
|
10706
|
+
protected abstract _rqMakeAXTree<TNode>(flat: AXTreeFlat<TNode>): Promise<MakeAXTreeResponse<TNode>>;
|
|
10707
|
+
protected abstract _rqDescribeAXNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): Promise<DescribeAXNodeResponse | undefined>;
|
|
10708
|
+
protected abstract _rqFindAXNode<TNode>(nodes: IAXNodeView<TNode>[], descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetricResponse | null>;
|
|
10709
|
+
}
|
|
10710
|
+
//#endregion
|
|
10711
|
+
//#region src/ax/http-remote-ax-provider.d.ts
|
|
10712
|
+
type AXServerRequest = {
|
|
10713
|
+
url: string;
|
|
10714
|
+
method: string;
|
|
10715
|
+
token: string;
|
|
10716
|
+
body: unknown;
|
|
10717
|
+
};
|
|
10718
|
+
type AXServerFetch = (request: AXServerRequest) => Promise<Response>;
|
|
10719
|
+
type HttpRemoteAXProviderOptions = {
|
|
10720
|
+
url: string;
|
|
10721
|
+
getAuthToken: () => string | Promise<string>;
|
|
10722
|
+
fetch?: AXServerFetch;
|
|
10723
|
+
};
|
|
10724
|
+
declare class HttpRemoteAXProvider extends RemoteAXProvider {
|
|
10725
|
+
#private;
|
|
10726
|
+
constructor(options: HttpRemoteAXProviderOptions);
|
|
10727
|
+
protected _rqMakeAXTree<TNode>(flat: AXTreeFlat<TNode>): Promise<MakeAXTreeResponse<TNode>>;
|
|
10728
|
+
protected _rqDescribeAXNode<TNode>(tree: IAXTreeView<TNode>, query: ElementDescriptorQuery<IAXNodeView<TNode>>): Promise<DescribeAXNodeResponse | undefined>;
|
|
10729
|
+
protected _rqFindAXNode<TNode>(nodes: IAXNodeView<TNode>[], descriptor: ResolvedElementDescriptor, options?: FindCandidatesOptions): Promise<CandidateMetricResponse | null>;
|
|
10666
10730
|
}
|
|
10667
10731
|
//#endregion
|
|
10668
|
-
export { type AXContentType, type AXControlType, type AXNodeFlat, type AXOption, type AXProvider, type AXState, type AXStructuralType, type AXStyle, type AXTreeFlat, type AXType, AbortError, type AnchorDescriptor, Automator, AutomatorError, BlockingDialog, BodyConsumedError, Browser, BrowserActivePageChangedEvent, BrowserDisconnectedEvent, BrowserPageClosedEvent, BrowserPageCreatedEvent, BrowserPageNavigatedEvent, BrowserStabilizingLoadEvent, BrowserStabilizingNavigationEvent, BrowserStabilizingOutgoingRequestsEvent, BrowserTargetCrashedEvent, BrowserTargetCreatedEvent, BrowserWindowCreatedEvent, CallableRemoteFunctionHandle, CandidateMetricResponse, Connection, Cookie, type CustomActions, Debugger, DebuggerPausedEvent, DebuggerResumedEvent, DescribeAXNodeResponse, type DescriptorStrategy, DialogHandledEvent, type ElementDescriptor, type ElementDescriptorQuery, EvaluationArguments, EvaluationExpression, EvaluationFunction, EvaluationOptions, EvaluationResult, Evaluator, EvaluatorDestroyedEvent, EvaluatorLogEvent, Expression, FilepickerDialog, FlagChangedEvent, Flags, FlagsSnapshot, FlushError, Frame, FrameDestroyedEvent, FrameDocumentRequestEvent, FrameDocumentResponseEvent, FrameEvaluatorAttached, FrameFetchError, FrameFetchOptions, FrameLifecycleEvent, FrameNavigatedEvent, FrameNavigatingEvent, FrameSwappedEvent, FrameSwappingEvent, type Har, HarRecorder, HarRecorderOptions, HarRecorderStatsChangedEvent, HarStats, type IAXNodeView, type IAXTreeView, Injection, InjectionEvaluatorAttachedEvent, InjectionExpression, InjectionIncommingMessageEvent, InjectionOutgoingMessageEvent, InjectionTargetAttachedEvent, Intercepted, InterceptedRequest, InterceptedResponse, InterceptionHandler, InterceptionPattern, InterceptionPatternMatcher, Keyboard, Loader, LoaderRequestEvent, LoaderResponseEvent, LocalizedRemoteValue, MakeAXTreeResponse, Mouse, NavigationFailedError, NavigationTimedOutError, NoHistoryEntryError, Node, type NodeBackground, Port, PortIncommingMessageEvent, type PortMessageEvent, PortOutgoingMessageEvent, RemoteAXProvider, RemoteFunctionHandle, RemoteObjectHandle, type Request, type ResolvedAnchor, type ResolvedElementDescriptor, ResolvedRemoteValue, type Response, RunOptions, RunResult, Runner, RunnerAXNodeFoundEvent, type RunnerContext, RunnerFilepickerDialogRequestedEvent, RunnerOptions, RunnerStatusChangedEvent, Script, type SelectorElementDescriptor, StaleNodeError, StaleRemoteObjectHandleError, StylesheetHandle, Target, TargetActivatedEvent, TargetActivatingEvent, TargetAttachedEvent, TargetChangedEvent, TargetChildTargetCreatingEvent, TargetClosedEvent, TargetDetachedEvent, TargetDialogEvent, TargetElementSelectedEvent, TargetFilepickerDialogEvent, TargetFrameAttachedEvent, TargetFrameTargetCreatedEvent, TargetMainFrameReadyEvent, TargetNavigatedEvent, TargetVisibilityChangeEvent, UnresponsiveTargetError, type UsedValues, WebNode, Window, WindowDestroyedEvent, WindowTargetAttachedEvent, WindowTargetDetachedEvent, flags, isElementAcceptableInvisible, localizeRemoteValue, makeBlockingDialog, makeBrowser, makeBundledExpression, makeBundledScript, makeConnection, makeDebugger, makeEvaluator, makeExpression, makeFilepickerDialog, makeFrame, makeInjection, makeIntercepted, makeInterceptedRequest, makeInterceptedResponse, makeInterceptionPatternMatcher, makeKeyboard, makeLoader, makeMouse, makePort, makeRunner, makeScript, makeTarget, makeWebNode, makeWindow, provideRolldownConfig, index_d_exports as spec, toCDPPattern };
|
|
10732
|
+
export { type AXContentType, type AXControlType, type AXNodeFlat, type AXOption, type AXProvider, AXServerFetch, AXServerRequest, type AXState, type AXStructuralType, type AXStyle, type AXTreeFlat, type AXType, AbortError, type AnchorDescriptor, Automator, AutomatorError, BlockingDialog, BodyConsumedError, Browser, BrowserActivePageChangedEvent, BrowserDisconnectedEvent, BrowserPageClosedEvent, BrowserPageCreatedEvent, BrowserPageNavigatedEvent, BrowserStabilizingLoadEvent, BrowserStabilizingNavigationEvent, BrowserStabilizingOutgoingRequestsEvent, BrowserTargetCrashedEvent, BrowserTargetCreatedEvent, BrowserWindowCreatedEvent, CallableRemoteFunctionHandle, CandidateMetricResponse, Connection, Cookie, type CustomActions, Debugger, DebuggerPausedEvent, DebuggerResumedEvent, DescribeAXNodeResponse, type DescriptorStrategy, DialogHandledEvent, type ElementDescriptor, type ElementDescriptorQuery, EvaluationArguments, EvaluationExpression, EvaluationFunction, EvaluationOptions, EvaluationResult, Evaluator, EvaluatorDestroyedEvent, EvaluatorLogEvent, Expression, FilepickerDialog, FlagChangedEvent, Flags, FlagsSnapshot, FlushError, Frame, FrameDestroyedEvent, FrameDocumentRequestEvent, FrameDocumentResponseEvent, FrameEvaluatorAttached, FrameFetchError, FrameFetchOptions, FrameLifecycleEvent, FrameNavigatedEvent, FrameNavigatingEvent, FrameSwappedEvent, FrameSwappingEvent, type Har, HarRecorder, HarRecorderOptions, HarRecorderStatsChangedEvent, HarStats, HttpRemoteAXProvider, HttpRemoteAXProviderOptions, type IAXNodeView, type IAXTreeView, Injection, InjectionEvaluatorAttachedEvent, InjectionExpression, InjectionIncommingMessageEvent, InjectionOutgoingMessageEvent, InjectionTargetAttachedEvent, Intercepted, InterceptedRequest, InterceptedResponse, InterceptionHandler, InterceptionPattern, InterceptionPatternMatcher, Keyboard, Loader, LoaderRequestEvent, LoaderResponseEvent, LocalizedRemoteValue, MakeAXTreeResponse, Mouse, NavigationFailedError, NavigationTimedOutError, NoHistoryEntryError, Node, type NodeBackground, Port, PortIncommingMessageEvent, type PortMessageEvent, PortOutgoingMessageEvent, RemoteAXProvider, RemoteFunctionHandle, RemoteObjectHandle, type Request, type ResolvedAnchor, type ResolvedElementDescriptor, ResolvedRemoteValue, type Response$1 as Response, RunOptions, RunResult, Runner, RunnerAXNodeFoundEvent, type RunnerContext, RunnerFilepickerDialogRequestedEvent, RunnerOptions, RunnerStatusChangedEvent, Script, type SelectorElementDescriptor, StaleNodeError, StaleRemoteObjectHandleError, StylesheetHandle, Target, TargetActivatedEvent, TargetActivatingEvent, TargetAttachedEvent, TargetChangedEvent, TargetChildTargetCreatingEvent, TargetClosedEvent, TargetDetachedEvent, TargetDialogEvent, TargetElementSelectedEvent, TargetFilepickerDialogEvent, TargetFrameAttachedEvent, TargetFrameTargetCreatedEvent, TargetMainFrameReadyEvent, TargetNavigatedEvent, TargetVisibilityChangeEvent, UnresponsiveTargetError, type UsedValues, WebNode, Window, WindowDestroyedEvent, WindowTargetAttachedEvent, WindowTargetDetachedEvent, flags, isElementAcceptableInvisible, localizeRemoteValue, makeBlockingDialog, makeBrowser, makeBundledExpression, makeBundledScript, makeConnection, makeDebugger, makeEvaluator, makeExpression, makeFilepickerDialog, makeFrame, makeInjection, makeIntercepted, makeInterceptedRequest, makeInterceptedResponse, makeInterceptionPatternMatcher, makeKeyboard, makeLoader, makeMouse, makePort, makeRunner, makeScript, makeTarget, makeWebNode, makeWindow, provideRolldownConfig, index_d_exports as spec, toCDPPattern };
|