Factory function to initialize the FE Test Library.
Playwright Page (or compatible mock)
FE test library page object configuration
Optional
Optional initialization settings
Initialized FETestLibraryInstance
Injects browser-side scripts to load SAP FE test libraries and initialize OPA5 page objects. Optionally detects BTP WorkZone environment.
const fe = await initializeFETestLibrary(page, { onTheMainPage: { ListReport: { appId: 'my.app', componentId: 'comp', entitySet: 'Items' }, },}); Copy
const fe = await initializeFETestLibrary(page, { onTheMainPage: { ListReport: { appId: 'my.app', componentId: 'comp', entitySet: 'Items' }, },});
Factory function to initialize the FE Test Library.