Matterway
    Preparing search index...

    Function type

    • Types into a form field, after the existing text.

      Parameters

      • ctx: Context

        Context object.

      • selector: string

        Css selector.

      • value: string

        A value to type into field.

      • options: TypeOptions & WaitForSelectorOptions = {}

      Returns Promise<void>

      Triggers an event for each character. If you want to clear the field first, use the helper "fill".

      await type(ctx, 'input', 'Hello');
      
      await type(ctx, 'input', 'Hello', {
      delay: 500,
      clear: true,
      blur: true,
      });