Skip to main content
Version: 1.x

Interface: PageContext

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

Full page context snapshot used as AI input for test generation.

Remarks

Built by buildPageContext() / discoverPage() after waitForUI5Stable(). All arrays are partitioned views of the same discovered controls.

Intent

Provide structured page state for LLM-driven test authoring.

Capability

AI context building, page discovery.

Example

const ctx: PageContext = {
url: 'https://my.fiori.app/launchpad',
ui5Version: '1.120.3',
controls: [...],
formFields: [...],
buttons: [...],
tables: [...],
navigationElements: [...],
timestamp: new Date().toISOString(),
};

Properties

buttons

readonly buttons: DiscoveredControl[]

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

Controls classified as buttons or clickable triggers.


controls

readonly controls: DiscoveredControl[]

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

All discovered controls on the page.


formFields

readonly formFields: DiscoveredControl[]

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

Controls classified as form fields (inputs, selects, etc.).


readonly navigationElements: DiscoveredControl[]

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

Controls classified as navigation elements (links, tiles, etc.).


tables

readonly tables: DiscoveredControl[]

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

Controls classified as data tables or lists.


timestamp

readonly timestamp: string

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

ISO 8601 timestamp when the page context was captured.


ui5Version?

readonly optional ui5Version: string

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

UI5 framework version detected on the page, if available.


url

readonly url: string

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

Current page URL at time of discovery.