|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgeb.report.ReporterSupport
geb.report.PageSourceReporter
geb.report.ScreenshotAndPageSourceReporter
class ScreenshotAndPageSourceReporter extends PageSourceReporter
Writes the source of the browser's current page as html and takes a PNG screenshot if the underlying driver implementation supports it.
| Field Summary |
|---|
| Fields inherited from class PageSourceReporter | |
|---|---|
| NO_PAGE_SOURCE_SUBSTITUTE |
| Method Summary | |
|---|---|
protected def
|
determineScreenshotDriver(Browser browser)
|
protected def
|
saveScreenshotPngBytes(File outputDir, String label, byte[] bytes)
|
void
|
writeReport(Browser browser, String label, File outputDir)
|
| Methods inherited from class PageSourceReporter | |
|---|---|
| getPageSource, getPageSourceFileExtension, getReportFile, writePageSource, writeReport |
| Methods inherited from class ReporterSupport | |
|---|---|
| escapeFileName, getFile, toTestReportLabel |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Method Detail |
|---|
protected def determineScreenshotDriver(Browser browser)
protected def saveScreenshotPngBytes(File outputDir, String label, byte[] bytes)
void writeReport(Browser browser, String label, File outputDir)
Groovy API Documentation for geb-core 0.6.2 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org