Pages.Driver.Conn (Pages v4.1.0)

View Source

A 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] - when true, 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

t()

@type t() :: %Pages.Driver.Conn{
  conn: Plug.Conn.t(),
  context: %{required(atom()) => any()}
}

Functions

click(page, atom, maybe_title, selector)

Simulates clicking on an element at selector with title title.

new(conn, context \\ %{})

open_browser(page)

@spec open_browser(Pages.Driver.t()) :: Pages.Driver.t()

Not yet implemented for this driver.