title: Getting Selenium to pause for X seconds
body: <p>What I am trying to accomplish is browsing to a page, waiting for something to load and then taking and saving a screenshot.</p>
  
  <p>The code I already have is </p>
  
  <pre><code>WebDriver driver = new FirefoxDriver();
  
  
  driver.get("http://www.site.com");
  
  
  driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  
  try {
  
      File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
      FileUtils.copyFile(scrFile, new File("/home/Desktop/image.png"));
  
  } catch (Exception e) { 
  
         e.printStackTrace(); 
  }
  
  driver.close();
  </code></pre>
  
  <p>The reason I need to wait, even if the page is loaded is because it'll be loaded but on the site the content I'd like to take a picture of loads after a few seconds. For some reason the page is not waiting, <strong>is there another method that I can use to get the driver/page to wait for X amount of seconds?</strong></p>