Skip to main content

Interface: PageContext

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

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:460

Controls classified as buttons or clickable triggers.


controls​

readonly controls: DiscoveredControl[]

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

All discovered controls on the page.


formFields​

readonly formFields: DiscoveredControl[]

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

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


readonly navigationElements: DiscoveredControl[]

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

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


tables​

readonly tables: DiscoveredControl[]

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

Controls classified as data tables or lists.


timestamp​

readonly timestamp: string

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

ISO 8601 timestamp when the page context was captured.


ui5Version?​

readonly optional ui5Version: string

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

UI5 framework version detected on the page, if available.


url​

readonly url: string

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

Current page URL at time of discovery.