Function highlightElement

  • Highlights one or multiple elements on the page.

    Parameters

    • ctx: Context

      Context.

    • selectors: string | string[]

      A single selector or an array of selectors (CSS or XPath).

    • Optionaloptions: {
          blink?: boolean;
          color?: string;
      }
      • Optionalblink?: boolean

        Whether the elements should blink.

      • Optionalcolor?: string

        The color to use for highlighting (must be a hex value).

    Returns Promise<{
        remove: (() => Promise<void>);
    }>

    A Highlight object or a HighlightGroup object.