@applitools/nlp-web-runner 5.6.1-dev.7c135a4a5 → 5.7.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.
@@ -1 +1 @@
1
- var p=Q;(function(l,L){var a=Q,G=l();while(!![]){try{var V=parseInt(a(0xeb))/0x1+parseInt(a(0xee))/0x2+parseInt(a(0xf1))/0x3+-parseInt(a(0xea))/0x4*(-parseInt(a(0xe7))/0x5)+-parseInt(a(0xed))/0x6*(parseInt(a(0xe8))/0x7)+-parseInt(a(0xef))/0x8*(parseInt(a(0xf0))/0x9)+-parseInt(a(0xe6))/0xa;if(V===L)break;else G['push'](G['shift']());}catch(H){G['push'](G['shift']());}}}(A,0x2450c));var __defProp=Object[p(0xf2)],__exportAll=(l,L)=>{var D=p;let G={};for(var V in l)__defProp(G,V,{'get':l[V],'enumerable':!![]});if(!L)__defProp(G,Symbol[D(0xe9)],{'value':D(0xec)});return G;};export{__exportAll as t};function Q(l,L){l=l-0xe6;var G=A();var V=G[l];if(Q['Mneupm']===undefined){var H=function(N){var j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var v='',B='';for(var d=0x0,X,K,c=0x0;K=N['charAt'](c++);~K&&(X=d%0x4?X*0x40+K:K,d++%0x4)?v+=String['fromCharCode'](0xff&X>>(-0x2*d&0x6)):0x0){K=j['indexOf'](K);}for(var s=0x0,M=v['length'];s<M;s++){B+='%'+('00'+v['charCodeAt'](s)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(B);};Q['QrvEde']=H,Q['yelZLJ']={},Q['Mneupm']=!![];}var a=G[0x0],p=l+a,D=Q['yelZLJ'][p];return!D?(V=Q['QrvEde'](V),Q['yelZLJ'][p]=V):V=D,V;}function A(){var N=['Dg9tDhjPBMDuywC','ohfzCxvqCG','mJiWndCYwKDWBw1n','tw9KDwXL','mJGYBNjbvNfw','mZG3nJjvqLf2r2W','mta3mLnQA0rIua','nJy3ogfOC3zmuW','mty5otC3EhHjDMXH','zgvMAw5LuhjVCgvYDhK','mJy4mZmWtgzqzgnw','mJeXnJC1wwXKuhn3','mtu4mtn3se9rBum'];A=function(){return N;};return A();}
1
+ function r(R,b){R=R-0x1e8;var D=x();var L=D[R];if(r['RsWfwH']===undefined){var j=function(T){var V='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',C='';for(var y=0x0,o,X,G=0x0;X=T['charAt'](G++);~X&&(o=y%0x4?o*0x40+X:X,y++%0x4)?q+=String['fromCharCode'](0xff&o>>(-0x2*y&0x6)):0x0){X=V['indexOf'](X);}for(var B=0x0,u=q['length'];B<u;B++){C+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(C);};r['hgTlzo']=j,r['ACdksR']={},r['RsWfwH']=!![];}var N=D[0x0],A=R+N,S=r['ACdksR'][A];return!S?(L=r['hgTlzo'](L),r['ACdksR'][A]=L):L=S,L;}(function(R,b){var N=r,D=R();while(!![]){try{var L=parseInt(N(0x1f2))/0x1*(-parseInt(N(0x1f3))/0x2)+parseInt(N(0x1ed))/0x3*(parseInt(N(0x1f4))/0x4)+parseInt(N(0x1ee))/0x5*(-parseInt(N(0x1f1))/0x6)+parseInt(N(0x1f0))/0x7*(parseInt(N(0x1eb))/0x8)+-parseInt(N(0x1ea))/0x9+-parseInt(N(0x1e9))/0xa*(parseInt(N(0x1e8))/0xb)+parseInt(N(0x1ef))/0xc;if(L===b)break;else D['push'](D['shift']());}catch(j){D['push'](D['shift']());}}}(x,0x8b87e));var __defProp=Object['defineProperty'],__exportAll=(R,b)=>{var A=r;let D={};for(var L in R)__defProp(D,L,{'get':R[L],'enumerable':!![]});if(!b)__defProp(D,Symbol[A(0x1ec)],{'value':'Module'});return D;};function x(){var S=['mZiYntC3mxnsAhLvsq','otm0ntuYCLDnvM11','Dg9tDhjPBMDuywC','nLDPAxbizq','mZyZodvrthjwtgy','mJq3mJGXnZjUyKDQuvu','mtrRt2rNyLO','nZyYwKX1BMDP','otaXngT3vMvczG','mta2uKvtzMf2','nJy0mZi0Du1Zru9e','mZi0mdG1m3rXwuDlvq','mtbTzgvAru8'];x=function(){return S;};return x();}export{__exportAll as t};
@@ -118,7 +118,7 @@ type TypeAction = {
118
118
  type: 'type';
119
119
  value: AnyExpression | Extractor<ElementDescriptor, any> | Generator$1;
120
120
  secret?: boolean;
121
- element?: ElementDescriptor | ChromeElementDescriptor;
121
+ element?: ElementDescriptor | ChromeElementDescriptor | DialogElementDescriptor;
122
122
  };
123
123
  type SearchAction = {
124
124
  type: 'search';
@@ -141,6 +141,10 @@ type ClickChromeElementAction = {
141
141
  type: 'click';
142
142
  element: ChromeElementDescriptor;
143
143
  };
144
+ type ClickDialogElementAction = {
145
+ type: 'click';
146
+ element: DialogElementDescriptor;
147
+ };
144
148
  type HoverAction = {
145
149
  type: 'hover';
146
150
  element: ElementDescriptor;
@@ -175,11 +179,6 @@ type ScrollTheElementAction = {
175
179
  distance: NumberExpression;
176
180
  times?: NumberExpression;
177
181
  };
178
- type AlertAction = {
179
- type: 'alert';
180
- value: boolean;
181
- condition?: ElementCondition;
182
- };
183
182
  type NavigatePdfAction = {
184
183
  type: 'navigate pdf';
185
184
  page: NumberExpression;
@@ -212,7 +211,7 @@ type CloseTargetAction = {
212
211
  };
213
212
  type CloseAction = {
214
213
  type: 'close';
215
- element: ElementDescriptor;
214
+ element: ElementDescriptor | DialogDescriptor;
216
215
  };
217
216
  type SwitchTargetByIndexAction = {
218
217
  type: 'switch target';
@@ -242,7 +241,7 @@ type IntentAction = {
242
241
  type: 'intent';
243
242
  description: string;
244
243
  };
245
- type Action<TType extends string> = Extract<EmptyAction | CommentAction | SetVariableAction | SetValueAction | FetchAction | AssertAction | EvaluateAction | FocusAction | CheckAction | ClearAction | EraseAction | TypeAction | HitKeyAction | SearchAction | ClickElementAction | ClickChromeElementAction | HoverAction | ScrollByDistanceAction | ScrollByFractionAction | ScrollToPositionAction | ScrollToElementAction | ScrollTheElementAction | AlertAction | NavigateToUrlAction | NavigateThroughHistoryAction | NavigatePdfAction | RefreshAction | CreateTargetAction | CloseTargetAction | CloseAction | SwitchTargetByIndexAction | SwitchTargetByTitleAction | SwitchTargetByPositionAction | WaitAction | GoAction | FindAction | VisualCheckAction | IntentAction, {
244
+ type Action<TType extends string> = Extract<EmptyAction | CommentAction | SetVariableAction | SetValueAction | FetchAction | AssertAction | EvaluateAction | FocusAction | CheckAction | ClearAction | EraseAction | TypeAction | HitKeyAction | SearchAction | ClickElementAction | ClickChromeElementAction | ClickDialogElementAction | HoverAction | ScrollByDistanceAction | ScrollByFractionAction | ScrollToPositionAction | ScrollToElementAction | ScrollTheElementAction | NavigateToUrlAction | NavigateThroughHistoryAction | NavigatePdfAction | RefreshAction | CreateTargetAction | CloseTargetAction | CloseAction | SwitchTargetByIndexAction | SwitchTargetByTitleAction | SwitchTargetByPositionAction | WaitAction | GoAction | FindAction | VisualCheckAction | IntentAction, {
246
245
  type: TType;
247
246
  }>;
248
247
  type Instruction = Action<any> | ControlFlow;
@@ -504,11 +503,15 @@ type RelativeAnchorDescriptor<TElement = ElementDescriptor> = {
504
503
  };
505
504
  type AbsoluteAnchorDescriptor<TElement = ElementDescriptor> = {
506
505
  position: AbsolutePosition | AbsolutePosition[];
507
- element?: TElement | ViewportDescriptor;
506
+ element?: TElement | ViewportDescriptor | DialogDescriptor;
508
507
  };
509
508
  type DialogDescriptor = {
510
509
  isDialogDescriptor: true;
511
510
  };
511
+ type DialogElementDescriptor = {
512
+ isDialogElementDescriptor: true;
513
+ title: 'ok' | 'cancel' | 'prompt';
514
+ };
512
515
  type ChromeElementDescriptor = {
513
516
  isChromeElementDescriptor: true;
514
517
  title: 'refresh' | 'back' | 'forward' | 'url';
@@ -520,11 +523,6 @@ type CharacterKey = 'Backquote' | 'Digit1' | 'Digit2' | 'Digit3' | 'Digit4' | 'D
520
523
  type ArrowKey = 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight';
521
524
  type ControlKey = 'Escape' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'Backspace' | 'Tab' | 'CapsLock' | 'Enter' | 'ShiftLeft' | 'ShiftRight' | 'ControlLeft' | 'MetaLeft' | 'AltLeft' | 'Space' | 'AltRight' | 'AltGraph' | 'MetaRight' | 'ControlRight' | 'Delete' | 'Home' | 'End' | 'PageUp' | 'PageDown' | 'Insert';
522
525
  type Key = ControlKey | ArrowKey | CharacterKey;
523
- type ElementCondition = {
524
- type: ConditionType;
525
- element?: ElementDescriptor;
526
- };
527
- type ConditionType = 'exists' | 'not-exists' | 'visible' | 'not-visible' | 'clickable';
528
526
  type ElementType = StructuralType | ControlType | ContentType;
529
527
  type StructuralType = 'app' | 'host' | 'ad' | 'header' | 'footer' | 'sidebar' | 'popup' | 'tooltip' | 'modal' | 'scrollable' | 'form' | 'fieldset' | 'menu' | 'menuitem' | 'hamburger' | 'list' | 'listitem' | 'heading' | 'table' | 'table-cell' | 'table-head-cell' | 'table-row' | 'table-dom-row' | 'table-leaf-row' | 'table-head-row' | 'table-column' | 'table-leaf-column' | 'table-stub-column' | 'card' | 'pdfpage';
530
528
  type ControlType = 'checkboxgroup' | 'checkbox' | 'radiogroup' | 'radio' | 'textbox' | 'combobox' | 'listbox' | 'option' | 'datepicker' | 'timepicker' | 'datetimepicker' | 'colorpicker' | 'filepicker' | 'slider' | 'inputbox' | 'selectbox' | 'valuebox' | 'button' | 'color';
@@ -774,7 +772,7 @@ declare class Rectangle {
774
772
  //#region src/patterns.d.ts
775
773
  type Match = (text: string) => string | null;
776
774
  //#endregion
777
- //#region dist/_inline/_chunks/script-9fx1iw2D.d.ts
775
+ //#region dist/_inline/_chunks/script-DKZ-WCFT.d.ts
778
776
  //#region src/port.d.ts
779
777
  interface PortMessageEvent<TName extends string = string, TPayload = unknown> extends Event {
780
778
  readonly name: TName;
@@ -1299,6 +1297,7 @@ type BlockingDialogOptions = {
1299
1297
  };
1300
1298
  declare function makeBlockingDialog(options: BlockingDialogOptions): BlockingDialog;
1301
1299
  declare class BlockingDialog extends EventTargetNode<DialogEventMap> {
1300
+ #private;
1302
1301
  readonly target: Target;
1303
1302
  readonly type: 'alert' | 'confirm' | 'prompt' | 'beforeunload';
1304
1303
  readonly message: string;
@@ -1307,6 +1306,8 @@ declare class BlockingDialog extends EventTargetNode<DialogEventMap> {
1307
1306
  type,
1308
1307
  message
1309
1308
  }: BlockingDialogOptions);
1309
+ /** Whether the dialog was closed programmatically (as opposed to by the user). */
1310
+ get handled(): boolean;
1310
1311
  handle(ok: boolean, text?: string): Promise<void>;
1311
1312
  }
1312
1313
  type FilepickerDialogOptions = {
@@ -1836,7 +1837,14 @@ declare class TargetFrameTargetCreatedEvent extends Event {
1836
1837
  declare class TargetDialogEvent extends Event {
1837
1838
  readonly state: 'opened' | 'closed';
1838
1839
  readonly dialog: BlockingDialog;
1839
- constructor(state: 'opened' | 'closed', dialog: BlockingDialog);
1840
+ /** Whether the dialog was confirmed (only on `closed`). */
1841
+ readonly result?: boolean;
1842
+ /** The prompt input the dialog was confirmed with (only on `closed`). */
1843
+ readonly value?: string;
1844
+ constructor(state: 'opened' | 'closed', dialog: BlockingDialog, options?: {
1845
+ result?: boolean;
1846
+ value?: string;
1847
+ });
1840
1848
  }
1841
1849
  declare class TargetFilepickerDialogEvent extends Event {
1842
1850
  readonly dialog: FilepickerDialog;
@@ -9191,6 +9199,7 @@ declare const ErrorCode: {
9191
9199
  readonly ELEMENT_NOT_CLEARABLE: "ELEMENT_NOT_CLEARABLE";
9192
9200
  readonly UNHANDLED_DIALOG: "UNHANDLED_DIALOG";
9193
9201
  readonly NO_ELEMENT: "NO_ELEMENT";
9202
+ readonly ILLEGAL_ELEMENT_DESCRIPTOR: "ILLEGAL_ELEMENT_DESCRIPTOR";
9194
9203
  readonly NO_OPTION: "NO_OPTION";
9195
9204
  readonly NO_DIALOG: "NO_DIALOG";
9196
9205
  readonly CONDITION_TIMED_OUT: "CONDITION_TIMED_OUT";
@@ -9586,6 +9595,9 @@ declare class ClickHandler$1 extends Handler$1<Browser, Action<'click'>> {
9586
9595
  handle(): Promise<{
9587
9596
  status: "success";
9588
9597
  }>;
9598
+ handleWithDialogElementDescriptor(descriptor: DialogElementDescriptor): Promise<{
9599
+ status: "success";
9600
+ }>;
9589
9601
  handleWithChromeElementDescriptor(descriptor: ChromeElementDescriptor): Promise<{
9590
9602
  status: "success";
9591
9603
  }>;
@@ -9599,6 +9611,9 @@ declare class TypeHandler$1 extends Handler$1<Browser, Action<'type'>> {
9599
9611
  handle(): Promise<{
9600
9612
  status: "success";
9601
9613
  }>;
9614
+ handleWithDialogElementDescriptor(): Promise<{
9615
+ status: "success";
9616
+ }>;
9602
9617
  }
9603
9618
  //#endregion
9604
9619
  //#region src/handlers/web/clear.d.ts
@@ -9738,13 +9753,6 @@ declare class GoHandler extends Handler$1<Browser, Action<'go'>, NavigateResult
9738
9753
  }>;
9739
9754
  }
9740
9755
  //#endregion
9741
- //#region src/handlers/web/handle-dialog.d.ts
9742
- declare class HandleDialogHandler extends Handler$1<Browser, Action<'alert'>> {
9743
- handle(): Promise<{
9744
- status: "success";
9745
- }>;
9746
- }
9747
- //#endregion
9748
9756
  //#region src/handlers/web/hit-key.d.ts
9749
9757
  declare class HitKeyHandler extends Handler$1<Browser, Action<'hit key'>> {
9750
9758
  handle(): Promise<{
@@ -9860,7 +9868,6 @@ declare const handlers: {
9860
9868
  evaluate: typeof EvaluateHandler;
9861
9869
  find: typeof FindHandler$1;
9862
9870
  focus: typeof FocusHandler$1;
9863
- alert: typeof HandleDialogHandler;
9864
9871
  'hit key': typeof HitKeyHandler;
9865
9872
  hover: typeof HoverHandler;
9866
9873
  navigate: typeof NavigateHandler;
@@ -9913,7 +9920,6 @@ declare const handlers: {
9913
9920
  "hit key": never;
9914
9921
  search: never;
9915
9922
  hover: never;
9916
- alert: never;
9917
9923
  navigate: never;
9918
9924
  "navigate pdf": never;
9919
9925
  refresh: never;