title: When web scraping/testing how do I get passed the notifications popup?
body: <p>Goal: I'm trying to scrape pictures from instagram using Puppeteer to programmatically log in to my account and start mining data. </p>
  
  <p>The issue: I can log in fine but then I get hit with a popup asking if I want notifications (I turned headless off to see this in action). I'm following the example code for this found here: <a href="https://github.com/checkly/puppeteer-examples/blob/master/3.%20login/instagram.js" rel="nofollow noreferrer">https://github.com/checkly/puppeteer-examples/blob/master/3.%20login/instagram.js</a> which uses the below try block to find the notification popup and click the 'Not now' button.</p>
  
  <pre><code>//check if the app asks for notifications
      try {
              await loginPage.waitForSelector(".aOOlW.HoLwm",{
                  timeout:5000
              });
              await loginPage.click(".aOOlW.HoLwm");
          } catch (err) {
  
          }
  </code></pre>
  
  <p>The problem is it doesn't actually click the 'Not now' button so my script is stuck in limbo. The selector is pointing to the right div so what gives? </p>