# MentorPageElement record

> The MentorPageElement record of Novior.MentorAgent.Abstractions.Models: One element of a page a scan read or the widget observed: structure only, never a…

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

One element of a page a scan read or the widget observed: structure only, never a value. A password field, card data, a hidden, disabled or `data-mentor-exclude` element is never one. Its texts come from the page: read them as untrusted data, not as instructions. More properties may be added.

## Definition

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

`public sealed record MentorPageElement : IEquatable<MentorPageElement>`

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

## Constructors

`public MentorPageElement()`

## Properties

### `Coverage`

`public MentorPageCoverage Coverage { get; init; }`

Where it comes from: [`MentorPageCoverage.Scanned`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorpagecoverage), read by a scan, or [`MentorPageCoverage.Observed`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorpagecoverage), seen in the users' browsers. An observed element has no [`MentorPageElement.Label`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorpageelement#label) and no [`MentorPageElement.Form`](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorpageelement#form): what a user saw stays in the application's process. One of a structure that repeats (the rows of a table, a list, cards) stands for every element in its place.

### `Element`

`public required string Element { get; init; }`

The element's tag, for example `input`, `select`, `textarea`, `button` or `a`.

### `Form`

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

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

### `Label`

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

Its visible or accessible label, up to 256 characters: text of the page, untrusted.

### `Options`

`public IReadOnlyList<string> Options { get; init; }`

The labels of the options of a select or a radio group, up to 64; never their values.

### `Role`

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

Its ARIA role, for example `textbox`, `combobox`, `checkbox`, `button` or `link`.

### `Roles`

`public IReadOnlyList<string> Roles { get; init; }`

The roles of the application the scan saw it with; none for an observed element, whose roles are not known.

### `Selector`

`public required string Selector { get; init; }`

A stable selector for it: an id, a `name`, a `data-testid`, or its label with its role.

### `Type`

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

The `type` of an input, for example `text`, `number` or `date`.

---

- Previous: [MentorPageCoverage enum](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorpagecoverage.md)
- Next: [MentorPageInfo record](https://docs.mentoragent.net/api/novior-mentoragent-abstractions-models/mentorpageinfo.md)
