A WindowFinder should provide an abstraction layer to perform window searches

Interface

WindowFinderInterface

Hierarchy

  • WindowFinderInterface

Methods

  • findMatch should provide an abstraction to search for a window on screen

    Returns

    A single window handle

    Memberof

    WindowFinderInterface

    Parameters

    • query: { by: { title: string | RegExp }; id: string; type: "window" }

      A WindowQuery containing needed data

      • by: { title: string | RegExp }
        • title: string | RegExp
      • id: string
      • type: "window"

    Returns Promise<number>

  • findMatches should provide an abstraction to search for a window on screen

    Returns

    A list of window handles

    Memberof

    WindowFinderInterface

    Parameters

    • query: { by: { title: string | RegExp }; id: string; type: "window" }

      A WindowQuery containing needed data

      • by: { title: string | RegExp }
        • title: string | RegExp
      • id: string
      • type: "window"

    Returns Promise<number[]>