API ReferenceclassesApplauncherfactory

Playwright Power Platform Toolkit v0.0.4


Playwright Power Platform Toolkit / AppLauncherFactory

Class: AppLauncherFactory

Defined in: core/app-launcher.factory.ts:17

Factory class to create app launchers Supports Canvas Apps, Model Driven Apps, and extensible for future app types

Constructors

Constructor

new AppLauncherFactory(): AppLauncherFactory

Returns

AppLauncherFactory

Methods

createLauncher()

static createLauncher(page, appType): IAppLauncher

Defined in: core/app-launcher.factory.ts:27

Create an app launcher for the specified app type Returns a singleton instance for each page-appType combination

Parameters

page

Page

Playwright page

appType

AppType

Type of app to launch

Returns

IAppLauncher

App launcher instance


getCanvasLauncher()

static getCanvasLauncher(page): IAppLauncher

Defined in: core/app-launcher.factory.ts:66

Get launcher for Canvas Apps

Parameters

page

Page

Playwright page

Returns

IAppLauncher

Canvas app launcher


getModelDrivenLauncher()

static getModelDrivenLauncher(page): IAppLauncher

Defined in: core/app-launcher.factory.ts:75

Get launcher for Model Driven Apps

Parameters

page

Page

Playwright page

Returns

IAppLauncher

Model driven app launcher


clearCache()

static clearCache(): void

Defined in: core/app-launcher.factory.ts:83

Clear all cached launcher instances Use this when you need to reset state between tests

Returns

void


clearCacheForPage()

static clearCacheForPage(page): void

Defined in: core/app-launcher.factory.ts:91

Clear launcher cache for a specific page

Parameters

page

Page

Playwright page

Returns

void


hasLauncher()

static hasLauncher(page, appType): boolean

Defined in: core/app-launcher.factory.ts:120

Check if a launcher exists for the given page and app type

Parameters

page

Page

Playwright page

appType

AppType

Type of app

Returns

boolean

true if launcher exists in cache