|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgeb.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 def
|
saveScreenshotPngBytes(File outputDir, String label, byte[] bytes)
|
void
|
writeReport(ReportState reportState)
|
| Methods inherited from class ReporterSupport | |
|---|---|
| addListener, escapeFileName, getFile, notifyListeners, toTestReportLabel |
| Method Detail |
|---|
protected static TakesScreenshot determineScreenshotDriver(Browser browser)
protected def saveScreenshotPngBytes(File outputDir, String label, byte[] bytes)
void writeReport(ReportState reportState)
Groovy API Documentation for Geb 0.9.0-RC-3 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org