title: webdriverio wait for page to load
body: <p>Is there a way to make webdriverio wait for a page to load?
  I saw that in java I can have something like:</p>
  <p><code>executeScript(&quot;return document.readyState&quot;).equals(&quot;complete&quot;));</code></p>
  <p>or</p>
  <pre><code>driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
  </code></pre>
  <p>Is there a way I can do it in webdriverio?
  I know that I can use waits to wait for a specific element but I am looking for a way to wait for the whole page the load</p>