title: selenium webdriver - wait until google map all tiles loaded
body: <p>I'm new to selenium and I'm kind of stuck.<br>
  I'm automating GWT base application and I need to wait till map tiles are fully loaded before moving to next process.<br>
  I'm try to find in google but no luck.<br>
  I found something like</p>
  
  <pre><code>public static final void waitTillPageLoad()
      {
          WebDriverWait wait = new WebDriverWait(LoginTestScript.fd, 40);
          wait.until( new Predicate&lt;WebDriver&gt;() {
              public boolean apply(WebDriver driver) {
                  return ((JavascriptExecutor)driver).executeScript("return document.readyState").equals("complete");
              }
          }
      );
      }
  </code></pre>
  
  <p>but, I need to wait untill map tiles loaded not <code>document.readyState</code> <br>
  do anyone have idea how can I wait until all map tiles loaded successfully. <br></p>
  
  <p>Thank you.</p>