• Type the given value into the element, emitting all relevant events, to simulate a user typing with a keyboard.

    Parameters

    • selector: string | HTMLElement | Element

      A CSS selector string, or an instance of HTMLElement, or Element.

    • value: string

      The string to type into the :focus element.

    Returns Promise<void>

    await type('#my-div', 'Hello World')