Skip to main content
Version: 1.x

Interface: ExtensionContext

Context provided to extension factories during handler creation.

Remarks

Each test gets its own context with a fresh handler instance. The page and handler are test-scoped; config is worker-scoped and frozen.

Example

extendUI5Handler('myExt', (ctx: ExtensionContext) => ({
async myMethod() {
const btn = await ctx.handler.control({ id: 'btn1' });
await btn.press();
},
}));

Properties

config

readonly config: Readonly<PramanConfig>

Validated, frozen Praman configuration.


handler

readonly handler: UI5Handler

The base UI5Handler instance for control discovery and interaction.


page

readonly page: Page

Playwright Page for direct browser interactions.