Selenium: chrome driver makes screenshot just of visible part of page

selenium, selenium-chromedriver, selenium-webdriver

Solution

This is a known bug: https://code.google.com/p/chromedriver/issues/detail?id=294 (Only for Chrome driver, firefox driver works fine)

Problem

I need to do screenshot of full page using chrome driver, but it makes it partly. ``` File screenshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); ``` The screenshot looks as visible rectangle with correct information and big black area below.

Original source