Function fillFileField

  • Attach a base64 file to a file input field.

    Parameters

    • ctx: Context
    • selector: string

      The selector for the file input field.

    • fileContent: string

      Base64 string data for the file.

    • fileName: string

      The name of the file to be uploaded.

    • fileType: string

      The file mimetype.

    • Optional options: WaitForSelectorOptions

    Returns Promise<void>

    Example

    await fillFileField(ctx, '.attachment', invoiceDocData, `invoice-${date}.pdf`, 'application/pdf');
    

Generated using TypeDoc