Search code examples
seleniumscreenshot

Errors capturing screenshot with headless selenium and chromedriver


We have a headless selenium running as part of a maven build script using chromedriver as a RemoteWebDriver and running using xvfb. Our tests on the environment and querying the underlying html dom execute fine. The problem we're facing is once we try taking screenshots of the test results

When running locally it runs fine and takes screenshots properly using the getScreenShotAs Java function, however when we run it on our CI server (ubuntu), we receive the error

"Internal Chrome error during 'CaptureEntirePage': (Taking a page snapshot is not supported on this platform)."

We're running the same version of all tools both on my local system and on the server.

Has anyone experienced this issue before and any ideas on how to work around it?

Thanks!


Solution

  • This problem was fixed with Chrome 17 (currently beta, available on the dev channel).