title: Puppeteer bypass recaptcha and fetch all cookies in headless mode
body: <pre><code>const puppeteer = require('puppeteer');
  (async () =&gt; {
      const browser = await puppeteer.launch({args: ['--no-sandbox']});
      const page = await browser.newPage();
  
      try {
          await page.goto('https://www.allabout*****.org', {waitUntil: 'networkidle2'}); // 59 second - load - domcontentloaded - networkidle2
          const cookies = await page._client.send('Network.getAllCookies');
          JSON.stringify(cookies, null, 4);
  
      } catch (e) {
  
      }
      await browser.close();
  })();
  </code></pre>
  
  <p>Tried above code to fetch all cookies but it only takes cookies before accepting captcha. After accepting captcha also, it sets cookies, that are not getting in the cookie list. <strong>How can I escape captcha using puppeteer in headless mode ( headless: true)?</strong>       </p>
  
  <p>Tried different independent node modules, puppeteer helpers, nothing worked.</p>