Fluffy.Playwright.Handle (Fluffy v0.1.1)

Copy Markdown View Source

Native identifiers for the active Playwright page.

Fluffy.unwrap/2 passes this handle to Playwright callbacks. Supply connection: handle.connection and timeout: handle.timeout when invoking PlaywrightEx channel functions so custom Playwright connections and the session deadline are respected.

The handle is an immutable snapshot. Returning a changed handle does not change the active Fluffy page.

Summary

Types

t()

@type t() :: %Fluffy.Playwright.Handle{
  connection: GenServer.name(),
  context_id: PlaywrightEx.guid(),
  frame_id: PlaywrightEx.guid(),
  page_id: PlaywrightEx.guid(),
  timeout: non_neg_integer()
}