Matterway
    Preparing search index...

    Function fill

    • Types the value into a form field, replacing the existing text.

      Parameters

      • ctx: Context

        Context object.

      • selector: string

        Css selector.

      • value: string

        A text to type into field.

      • Optionaloptions: FillOptions

      Returns Promise<void>

      Triggers an event for each character. If you want to keep the existing text, use the helper "type".

      await fill(ctx, 'input', 'Hello');