The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am running the following code, but I am never able to see the console log for when the "loaded" event fires when running with headless = false and looking at the console.
await page.evaluate(() => {
return new Promise(resolve => { const models = window['powerbi-client'].models;
const reportContainer = document.getElementByClassName("pbi-div").item(0); const config = { ... }; const report = powerbi.embed(reportContainer, config) report.on('loaded', function () { console.log('loaded report')
resolve(true) }); });
)}
Anyone have any insight as to how to properly get these events?