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
Initialize the SAP Fiori Elements OPA5 test library for Given/When/Then test execution.
fe.listReport.getTable
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.