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
readonlybuttons:DiscoveredControl[]
Defined in: src/ai/types.ts:391
Controls classified as buttons or clickable triggers.
controls
readonlycontrols:DiscoveredControl[]
Defined in: src/ai/types.ts:387
All discovered controls on the page.
formFields
readonlyformFields:DiscoveredControl[]
Defined in: src/ai/types.ts:389
Controls classified as form fields (inputs, selects, etc.).
navigationElements
readonlynavigationElements:DiscoveredControl[]
Defined in: src/ai/types.ts:395
Controls classified as navigation elements (links, tiles, etc.).
tables
readonlytables:DiscoveredControl[]
Defined in: src/ai/types.ts:393
Controls classified as data tables or lists.
timestamp
readonlytimestamp:string
Defined in: src/ai/types.ts:397
ISO 8601 timestamp when the page context was captured.
ui5Version?
readonlyoptionalui5Version:string
Defined in: src/ai/types.ts:385
UI5 framework version detected on the page, if available.
url
readonlyurl:string
Defined in: src/ai/types.ts:383
Current page URL at time of discovery.