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.

    • Optional options: FillOptions

    Returns Promise<void>

    Remarks

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

    Example

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

Generated using TypeDoc