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()
staticcreateLauncher(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
Type of app to launch
Returns
App launcher instance
getCanvasLauncher()
staticgetCanvasLauncher(page):IAppLauncher
Defined in: core/app-launcher.factory.ts:66
Get launcher for Canvas Apps
Parameters
page
Page
Playwright page
Returns
Canvas app launcher
getModelDrivenLauncher()
staticgetModelDrivenLauncher(page):IAppLauncher
Defined in: core/app-launcher.factory.ts:75
Get launcher for Model Driven Apps
Parameters
page
Page
Playwright page
Returns
Model driven app launcher
clearCache()
staticclearCache():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()
staticclearCacheForPage(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()
statichasLauncher(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
Type of app
Returns
boolean
true if launcher exists in cache