# PageObservedElement class

> The PageObservedElement class of Novior.MentorAgent.Abstractions.Models: One element of a page the widget observed in the browser (story 1640, page.observe)…

- URL: https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/pageobservedelement
- Verified with: MentorAgent 1.5.0
- Last updated: 2026-11-26
- Packages: Novior.MentorAgent.Abstractions

One element of a page the widget observed in the browser (story 1640, `page.observe`): sent by the widget to the application, and by the WebAssembly client of `Novior.MentorAgent.Blazor` to the hub of `Novior.MentorAgent.Server` (`ReportObservedPage`). Structure only: there is no field for a value. Its texts come from the page: the application reads them as untrusted data.

## Definition

Namespace: `Novior.MentorAgent.Abstractions.Models`. Package: `Novior.MentorAgent.Abstractions`.

`public sealed class PageObservedElement`

```shell
dotnet add package Novior.MentorAgent.Abstractions
```

## Constructors

`public PageObservedElement()`

## Properties

### `Element`

`public string Element { get; set; }`

The element's tag, for example `button`.

### `Form`

`public string? Form { get; set; }`

The form, or group of fields, it belongs to.

### `Label`

`public string? Label { get; set; }`

Its label: none for an element of a structure that repeats, the column's header in a table.

### `Role`

`public string? Role { get; set; }`

Its ARIA role, when it has one.

### `Selector`

`public string Selector { get; set; }`

Its selector: the element's own, or for a structure that repeats one that fits every element in its place.

### `Type`

`public string? Type { get; set; }`

The `type` of an input or a button.

---

- Previous: [PageContextSnapshot class](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/pagecontextsnapshot.md)
- Next: [PageRouteInfo class](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/pagerouteinfo.md)
