Matterway
    Preparing search index...

    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: { color?: string; blink?: boolean }
        • Optionalcolor?: string

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

        • Optionalblink?: boolean

          Whether the elements should blink.

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

      A Highlight object or a HighlightGroup object.