Pages.Driver.Conn (Pages v3.4.2)
View SourceA page driver for interacting with Phoenix controllers.
Inspect
When inspecting or debugging a page, the default implementation is concise.
The output can be configure via :custom_options
on the Inspect
protocol.
Options:
custom_options: [html: true]
- whentrue
, print the prettified rendered HTML from the page.
iex> conn |> Pages.visit("/") |> dbg()
# Pages.Driver.Conn.visit(page, "/")
iex> conn |> Pages.visit("/") |> dbg(custom_options: [html: true])
# <html> ... etc
Summary
Functions
Simulates clicking on an element at selector
with title title
.
Not yet implemented for this driver.
Types
@type t() :: %Pages.Driver.Conn{ conn: Plug.Conn.t(), context: %{required(atom()) => any()} }
Functions
@spec click( Pages.Driver.t(), Pages.http_method(), Pages.text_filter() | nil, HtmlQuery.Css.selector() ) :: Pages.result()
Simulates clicking on an element at selector
with title title
.
@spec open_browser(Pages.Driver.t()) :: Pages.Driver.t()
Not yet implemented for this driver.