title: Run flash game in headless chrome using puppeteer
body: <p>How can I run a flash game in headless chrome using puppeteer? I'm trying to screenshot this <a href="http://www.bigfuntown.com/Game-59.html" rel="nofollow noreferrer">flash game</a> but the game doesn't run and is replaced by "Couldn't load plugin" text.</p>
  
  <p>Here's the relevant code I used to generate the screenshot and its output, running in ubuntu on windows subsystem linux:</p>
  
  <pre><code>const puppeteer = require('puppeteer');
  
  (async () =&gt; {
    const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
    const page = await browser.newPage();
    await page.setViewport({width: 1243, height: 882});
    await page.goto('http://www.bigfuntown.com/Game-59.html');
    await page.screenshot({path: 'game.png'});
  
    await browser.close();
  })();
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pv6ir.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pv6ir.png" alt="enter image description here"></a></p>