Skip to content

Instantly share code, notes, and snippets.

@illicitonion
Created October 6, 2011 10:46
Show Gist options
  • Select an option

  • Save illicitonion/1267110 to your computer and use it in GitHub Desktop.

Select an option

Save illicitonion/1267110 to your computer and use it in GitHub Desktop.
Testcase: testSaveScreenshotAsFile took 0.018 sec
Caused an ERROR
Could not take screenshot of current page - TypeError: documentElement is null; duration or timeout: 14 milliseconds
Build info: version: '2.8.0', revision: '14046', time: '2011-10-06 10:15:10'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-gg508-generic', java.version: '1.6.0-google-v4'
Driver info: driver.version: FirefoxDriver
org.openqa.selenium.WebDriverException: Could not take screenshot of current page - TypeError: documentElement is null; duration or timeout: 14 milliseconds
Build info: version: '2.8.0', revision: '14046', time: '2011-10-06 10:15:10'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-gg508-generic', java.version: '1.6.0-google-v4'
Driver info: driver.version: FirefoxDriver
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:147)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:113)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:415)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:419)
at org.openqa.selenium.firefox.FirefoxDriver.getScreenshotAs(FirefoxDriver.java:200)
at org.openqa.selenium.TakesScreenshotTest.testSaveScreenshotAsFile(TakesScreenshotTest.java:31)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: Could not take screenshot of current page - TypeError: documentElement is null
Build info: version: '2.8.0', revision: '14046', time: '2011-10-06 10:15:10'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-gg508-generic', java.version: '1.6.0-google-v4'
Driver info: driver.version: unknown
at <anonymous class>.<anonymous method>(file:///tmp/anonymous6076991653160951236webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js -> file:///tmp/anonymous6076991653160951236webdriver-profile/extensions/fxdriver@googlecode.com/components/firefoxDriver.js:838)
at <anonymous class>.<anonymous method>(file:///tmp/anonymous6076991653160951236webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:306)
at <anonymous class>.<anonymous method>(file:///tmp/anonymous6076991653160951236webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:320)
at <anonymous class>.<anonymous method>(file:///tmp/anonymous6076991653160951236webdriver-profile/extensions/fxdriver@googlecode.com/components/nsCommandProcessor.js:197)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment