View Source Pages.Driver behaviour (Pages v0.2.6)
Defines types and behaviours that page drivers must implement.
Link to this section Summary
Callbacks
Click an element within a page.
Re-renders the page
Submit a form targeted by the given selector.
Fills in a form with the attributes and submits it.
Fills in a form with the attributes without submitting it.
Navigate directly to a page.
Link to this section Types
@type t() :: Pages.Driver.Conn.t() | Pages.Driver.LiveView.t()
Link to this section Callbacks
@callback click(t(), binary(), Pages.Css.selector()) :: t() | no_return()
Click an element within a page.
Re-renders the page
@callback submit_form(t(), Pages.Css.selector()) :: t()
Submit a form targeted by the given selector.
@callback submit_form(t(), Pages.Css.selector(), atom(), Pages.attrs_t()) :: t()
Fills in a form with the attributes and submits it.
@callback update_form(t(), Pages.Css.selector(), atom(), Pages.attrs_t()) :: t()
Fills in a form with the attributes without submitting it.
Navigate directly to a page.