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