title: How to maximize browser window using puppeteer?
body: <p>I am trying to maximize the browser window using <code>puppeteer</code>. I tried below code but the browser is not maximized to full mode. I also did not find any function available in puppeteer library to maximize the window.</p>
  
  <pre class="lang-js prettyprint-override"><code>(async () =&gt; {
    const browser = await puppeteer.launch({headless: false , slowMo: 100, rgs: ['--start-fullscreen', '--window-size=1920,1080'], executablePath: 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe' });
    const page = await browser.newPage();
  
    await page.setViewport({ width: 1920, height: 1080 });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/8FmPr.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/8FmPr.jpg" alt="Example image"></a></p>