PlaywrightEx.FilePayload (PlaywrightEx v0.9.0)

Copy Markdown View Source

An in-memory file passed to a Playwright file input.

buffer contains the raw file bytes. It is base64-encoded only when the payload is serialized for the Playwright protocol.

Reference: https://playwright.dev/docs/api/class-locator#locator-set-input-files

Summary

Types

t()

@type t() :: %PlaywrightEx.FilePayload{
  buffer: binary(),
  mime_type: String.t() | nil,
  name: String.t()
}