Phoenix.LiveViewTest.element

You're seeing just the function element, go back to Phoenix.LiveViewTest module for more information.
Link to this function

element(view, selector, text_filter \\ nil)

View Source

Returns an element to scope a function to.

It expects the current LiveView, a query selector, and a text filter.

An optional text filter may be given to filter the results by the query selector. If the text filter is a string or a regex, it will match any element that contains the string or matches the regex. After the text filter is applied, only one element must remain, otherwise an error is raised.

If no text filter is given, then the query selector itself must return a single element.

assert view
      |> element("#term a:first-child()", "Increment")
      |> render() =~ "Increment</a>"