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)…
On this page
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
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.
public sealed class PageObservedElement
dotnet add package Novior.MentorAgent.AbstractionsConstructors
Section titled “Constructors”public PageObservedElement()
Properties
Section titled “Properties”Element
Section titled “Element”public string Element { get; set; }
The element's tag, for example button.
public string? Form { get; set; }
The form, or group of fields, it belongs to.
public string? Label { get; set; }
Its label: none for an element of a structure that repeats, the column's header in a table.
public string? Role { get; set; }
Its ARIA role, when it has one.
Selector
Section titled “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.
public string? Type { get; set; }
The type of an input or a button.
