title: Where and how can I add a wait for page to load in my script?
body: <p>I'm very new to JS im having an issue at the moment where my axe chrome extension isn't matching up with the below script. A suggestion would be to wait for the page to load however Im a bit confused about what to use and where to use it? Hoping that waiting for the page load will allow me to view the AA issues that aren't being pulled through.</p>
  <pre><code>const driver = new WebDriver.Builder().forBrowser('chrome').build();
      
      driver.get('MySite').then( () =&gt; {
          new AxeBuilder(driver).withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'best-practice', 'wcag***', 'act', 'section508', 'section508.*.*', 'experimental', 'cat.*', 'color-contrast'])
              .analyze((err, results) =&gt; {
              if (err) {
                  // Handle error somehow
              }
              console.log(results.violations);
          });
      
      });
  </code></pre>