title: reuse browser instance puppeterr
body: <p>I would like to know if it is possible to have one .js file that opens a browser instance, creates new page/tab logs in to a website (with username/password) and just stays idle. <br>And in a second .js file use file one browser instance and its page.</p>
  
  <p>1.js</p>
  
  <pre><code>const puppeteer = require('puppeteer');
  
  (async () =&gt; {
      const browser = await puppeteer.launch({ 
          headless: true,
          args: ['--no-sandbox'], 
          ignoreDefaultArgs: ["--hide-scrollbars"]
      });
  
      const page = await browser.newPage();
      const response = await page.goto('https://google.com');
  
      console.log('Browser open in the background (headless)!');
      //await browser.close();
  })();
  </code></pre>
  
  <p>2.js</p>
  
  <pre><code>const puppeteer = require('puppeteer');
  
  (async () =&gt; {
      // instructions on browser instance/page from 1.js ...
  })();
  </code></pre>