Method for taking a screenshot with WebDriver.