Retrieves data from a UI5 OData model at the given path.
Playwright Page (or compatible subset).
OData model path (must start with '/').
Optional
OData options (timeout, modelName).
The data at the given path (array, object, or primitive).
ODataError if path is invalid or model/data not found.
const products = await getModelData(page, '/Products');const single = await getModelData(page, '/Products(1)', { modelName: 'catalog' }); Copy
const products = await getModelData(page, '/Products');const single = await getModelData(page, '/Products(1)', { modelName: 'catalog' });
Retrieves data from a UI5 OData model at the given path.