@applitools/nlp-web-runner 5.6.0 → 5.6.1-dev.7c135a4a5

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.
@@ -711,6 +711,7 @@ declare class Rectangle {
711
711
  width: number;
712
712
  height: number;
713
713
  }): Rectangle;
714
+ /** Builds the axis-aligned bounding box of a CDP quad, whose 4 corners come in transform-dependent order. */
714
715
  static fromQuad(quad: number[]): Rectangle;
715
716
  readonly left: number;
716
717
  readonly top: number;
@@ -773,7 +774,7 @@ declare class Rectangle {
773
774
  //#region src/patterns.d.ts
774
775
  type Match = (text: string) => string | null;
775
776
  //#endregion
776
- //#region dist/_inline/_chunks/script-De9VUKC6.d.ts
777
+ //#region dist/_inline/_chunks/script-9fx1iw2D.d.ts
777
778
  //#region src/port.d.ts
778
779
  interface PortMessageEvent<TName extends string = string, TPayload = unknown> extends Event {
779
780
  readonly name: TName;
@@ -1241,6 +1242,13 @@ declare class WebNode<TNode extends globalThis.Node = Element | Text> implements
1241
1242
  button?: 'left' | 'middle' | 'right' | 'back' | 'forward';
1242
1243
  times?: number;
1243
1244
  }): Promise<void>;
1245
+ scrollIntoView({
1246
+ block,
1247
+ inline
1248
+ }?: {
1249
+ block?: ScrollLogicalPosition;
1250
+ inline?: ScrollLogicalPosition;
1251
+ }): Promise<void>;
1244
1252
  tryToUnobscure(): Promise<void>;
1245
1253
  isVisible(): Promise<boolean>;
1246
1254
  getObscurationInfo(): Promise<{
@@ -9310,6 +9318,10 @@ declare abstract class Handler$1<TAutomator extends Automator, TInstruction exte
9310
9318
  mobile: IAXNodeView<IOSNode> | null;
9311
9319
  }[TAutomator["type"]]>;
9312
9320
  capture(): Promise<Capture | undefined>;
9321
+ /** Best-effort scroll bringing the elements matched by this handler into the viewport, so the
9322
+ * `after` capture shows them. Call it after the instruction's page reads are done — the scroll
9323
+ * persists. No-op without `shouldCapture` or off web. */
9324
+ reveal(): Promise<void>;
9313
9325
  before(): Promise<void>;
9314
9326
  after(): Promise<void>;
9315
9327
  }