title: Automatically take a screenshot of every new page with Selenium Webdriver (java)
body: <p>Is there a way—perhaps with a listener—to take a screenshot of every new page that loads? Taking a screenshot itself is no problem, I can do that, I just need a way for it to happen automatically, so I don't have to manually enter the screenshto method before every time something is clicked on. </p>
  
  <p>I was looking at the <code>WebDriverEventListner</code> listener, but it seems it can't really be used to detect any page loads without previously specifying the element that will be clicked/page that will load?</p>