effect-playwright
    Preparing search index...

    Interface PlaywrightKeyboardService

    0.1.0

    interface PlaywrightKeyboardService {
        down: (key: string) => Effect<void, PlaywrightError>;
        insertText: (text: string) => Effect<void, PlaywrightError>;
        press: (
            key: string,
            options?: { delay?: number },
        ) => Effect<void, PlaywrightError>;
        type: (
            text: string,
            options?: { delay?: number },
        ) => Effect<void, PlaywrightError>;
        up: (key: string) => Effect<void, PlaywrightError>;
    }
    Index

    Properties

    down: (key: string) => Effect<void, PlaywrightError>

    Dispatches a keydown event.

    Keyboard.down

    0.1.0

    insertText: (text: string) => Effect<void, PlaywrightError>

    Dispatches only input event, does not emit the keydown, keyup or keypress events.

    Keyboard.insertText

    0.1.0

    press: (
        key: string,
        options?: { delay?: number },
    ) => Effect<void, PlaywrightError>

    Dispatches a keydown and keyup event.

    Keyboard.press

    0.1.0

    type: (
        text: string,
        options?: { delay?: number },
    ) => Effect<void, PlaywrightError>

    Sends a keydown, keypress/input, and keyup event for each character in the text.

    Keyboard.type

    0.1.0

    up: (key: string) => Effect<void, PlaywrightError>

    Dispatches a keyup event.

    Keyboard.up

    0.1.0