Skip to main content
Version: 1.x

Interface: DiscoveredControl

Defined in: src/ai/types.ts:340

A single UI5 control discovered during page analysis.

Intent

Represent discovered controls for AI-driven selector generation.

Capability

Control discovery, AI page context.

Sap Module

sap.ui.core.Control

Example

const control: DiscoveredControl = {
id: 'mainSubmitBtn',
controlType: 'sap.m.Button',
category: 'interactive',
visible: true,
text: 'Submit',
};

Properties

category

readonly category: "unknown" | "interactive" | "container" | "navigation"

Defined in: src/ai/types.ts:346

Semantic category of the control.


controlType

readonly controlType: string

Defined in: src/ai/types.ts:344

Fully-qualified UI5 control type (e.g. sap.m.Button).


id

readonly id: string

Defined in: src/ai/types.ts:342

UI5 control ID (from control.getId()).


objectCategory?

readonly optional objectCategory: string

Defined in: src/ai/types.ts:348

Optional object category for Fiori object-page controls.


properties?

readonly optional properties: Record<string, unknown>

Defined in: src/ai/types.ts:354

Additional control-specific properties.


text?

readonly optional text: string

Defined in: src/ai/types.ts:352

Display text if available (button label, input value, etc.).


visible

readonly visible: boolean

Defined in: src/ai/types.ts:350

Whether the control is currently visible in the DOM.