Groovy Documentation

geb.report
[Groovy] Class ScreenshotReporter

java.lang.Object
  geb.report.ReporterSupport
      geb.report.ScreenshotReporter

class ScreenshotReporter
extends ReporterSupport

Writes the source of the browser's current page as html and takes a PNG screenshot if the underlying driver implementation supports it.


Method Summary
protected static TakesScreenshot determineScreenshotDriver(Browser browser)

protected File saveScreenshotPngBytes(File outputDir, String label, byte[] bytes)

void writeReport(ReportState reportState)

 
Methods inherited from class ReporterSupport
addListener, escapeFileName, getFile, notifyListeners, toTestReportLabel
 

Method Detail

determineScreenshotDriver

protected static TakesScreenshot determineScreenshotDriver(Browser browser)


saveScreenshotPngBytes

protected File saveScreenshotPngBytes(File outputDir, String label, byte[] bytes)


writeReport

void writeReport(ReportState reportState)


 

Groovy API Documentation for Geb 0.9.1 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org