# `Phoenix.LiveViewTest.View`
[🔗](https://github.com/phoenixframework/phoenix_live_view/blob/v1.1.30/lib/phoenix_live_view/test/structs.ex#L1)

The struct for testing LiveViews.

The following public fields represent the LiveView:

  * `id` - The DOM id of the LiveView
  * `module` - The module of the running LiveView
  * `pid` - The Pid of the running LiveView
  * `endpoint` - The endpoint for the LiveView
  * `target` - The target to scope events to

See the `Phoenix.LiveViewTest` documentation for usage.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
