Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 |