Phoenix.LiveViewTest.has_element-question-mark

You're seeing just the function has_element-question-mark, go back to Phoenix.LiveViewTest module for more information.

Checks if the given element exists on the page.

Examples

assert view |> element("#some-element") |> has_element?()
Link to this function

has_element?(view, selector, text_filter \\ nil)

View Source

Checks if the given selector with text_filter is on view.

See element/3 for more information.

Examples

assert has_element?(view, "#some-element")