title: puppeteer: How to wait for pages in SPA's?
body: <p>I am trying to navigate through an SPA with puppeteer, the problem I am facing here is that I am unable to wait for the page to load then proceed with my program. </p>
  
  <p>I fill a form and then click submit, depending on the contents of the form, different pages can be loaded so I can't use <code>page.waitFor(Selector)</code> as there can be many different pages depending on the input.</p>
  
  <p>I tried using <code>waitUntil:</code> load, networkidle2, networkidle0, domcontentloaded but all of them trigger before the elements are loaded. </p>
  
  <p>The page I am trying to automate is <a href="https://icheck.sita.aero/iCheckWebAI/" rel="noreferrer">Link</a>. (If you want to check for yourself, then choose booking reference and fill out random details and press continue.)</p>
  
  <p>After choosing "booking-reference" in the link I fill in the details with puppeteer and then press the continue button, What I cannot figure out is how to wait for the page to be completely loaded without relying on selectors.</p>