View Source Pages (Pages v0.2.0)
Entry point for interacting with pages.
Pages are built around Pages.Driver.t/0
structs. Drivers hold state about
the current connection, implement @behavior Pages.Driver
and must implement
theString.Chars
protocol to transform themselves into HTML.
available-drivers
Available drivers
Pages.Driver.Conn.t/0
- Given aPlug.Conn.t/0
, this driver will be used.Pages.Driver.LiveView.t/0
- Given aPlug.Conn.t/0
with inner data that appears as if aPhoenix.LiveView
is configured, this driver will be used.
Link to this section Summary
Functions
Instantiate a new page.
Submits a form without specifying any attributes.
Fills in a form with the attributes and submits it.
Fills in a form with the attributes without submitting it.
Link to this section Types
Link to this section Functions
@spec click(Pages.Driver.t(), binary(), Pages.Css.selector()) :: Pages.Driver.t()
@spec new(Plug.Conn.t()) :: Pages.Driver.t()
Instantiate a new page.
@spec submit_form(Pages.Driver.t(), Pages.Css.selector()) :: Pages.Driver.t()
Submits a form without specifying any attributes.
@spec submit_form(Pages.Driver.t(), Pages.Css.selector(), atom(), attrs_t()) :: Pages.Driver.t()
Fills in a form with the attributes and submits it.
@spec update_form(Pages.Driver.t(), Pages.Css.selector(), atom(), attrs_t()) :: Pages.Driver.t()
Fills in a form with the attributes without submitting it.
@spec visit(Pages.Driver.t(), Path.t()) :: Pages.Driver.t()