<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Rendered event not firing in puppeteer evaluate in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Rendered-event-not-firing-in-puppeteer-evaluate/m-p/1124010#M23903</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;PRE&gt;await page.evaluate(() =&amp;gt; {&lt;BR /&gt;             return new Promise(resolve =&amp;gt; {
               const models = window['powerbi-client'].models;&lt;BR /&gt;               const reportContainer = document.getElementByClassName("pbi-div").item(0);
               const config = {
                         ...
               };

               const report = powerbi.embed(reportContainer, config)

               report.on('loaded', function () {
                 console.log('loaded report')&lt;BR /&gt;                 resolve(true)
               });

       });&lt;BR /&gt;)}&lt;/PRE&gt;&lt;P&gt;Anyone have any insight as to how to properly get these events?&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 17:19:12 GMT</pubDate>
    <dc:creator>Kvotava</dc:creator>
    <dc:date>2020-05-27T17:19:12Z</dc:date>
    <item>
      <title>Rendered event not firing in puppeteer evaluate</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Rendered-event-not-firing-in-puppeteer-evaluate/m-p/1124010#M23903</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;PRE&gt;await page.evaluate(() =&amp;gt; {&lt;BR /&gt;             return new Promise(resolve =&amp;gt; {
               const models = window['powerbi-client'].models;&lt;BR /&gt;               const reportContainer = document.getElementByClassName("pbi-div").item(0);
               const config = {
                         ...
               };

               const report = powerbi.embed(reportContainer, config)

               report.on('loaded', function () {
                 console.log('loaded report')&lt;BR /&gt;                 resolve(true)
               });

       });&lt;BR /&gt;)}&lt;/PRE&gt;&lt;P&gt;Anyone have any insight as to how to properly get these events?&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 17:19:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Rendered-event-not-firing-in-puppeteer-evaluate/m-p/1124010#M23903</guid>
      <dc:creator>Kvotava</dc:creator>
      <dc:date>2020-05-27T17:19:12Z</dc:date>
    </item>
  </channel>
</rss>

