title: Wait for a page to fully load in Selenium
body: <p>I am using selenium with Java. I want to wait for page to load fully before doing any action on that page.</p>
  
  <p>I have tried the following method, but it is failing to work as expected.</p>
  
  <pre><code>public void waitForElementToBeVisible(final WebElement element) {
  
      WebDriverWait wait = new WebDriverWait(WebDriverFactory.getWebDriver(), WEBDRIVER_PAUSE_TIME);
  
      wait.until(ExpectedConditions.visibilityOf(element));
  </code></pre>