Fluffy.Frame (Fluffy v0.7.0)

Copy Markdown View Source

A live browser frame returned by Fluffy.Event.frame_navigated/1.

A page has one main frame and may contain child frames. Metadata resolves current state; the navigation event does not wait for page loading to finish.

Summary

Functions

Returns the owning page's live handle.

Returns the parent frame, or nil for the main frame.

Returns the frame's current URL.

Types

t()

@opaque t()

Functions

page(frame)

@spec page(t()) :: Fluffy.Page.t()

Returns the owning page's live handle.

parent_frame(frame)

@spec parent_frame(t()) :: t() | nil

Returns the parent frame, or nil for the main frame.

url(frame)

@spec url(t()) :: String.t()

Returns the frame's current URL.