Groovy Documentation

geb.report
[Groovy] Class PageSourceReporter

java.lang.Object
  geb.report.ReporterSupport
      geb.report.PageSourceReporter

class PageSourceReporter
extends ReporterSupport

Writes the source content of the browser's current page as a html file.


Field Summary
static def NO_PAGE_SOURCE_SUBSTITUTE

 
Method Summary
protected def getPageSource(Browser browser)

protected def getPageSourceFileExtension(Browser browser)

Here to allow smarter calculation of the extension if necessary

protected def getReportFile(ReportState reportState)

protected def writePageSource(File file, Browser browser)

void writeReport(ReportState reportState)

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

Field Detail

NO_PAGE_SOURCE_SUBSTITUTE

public static final def NO_PAGE_SOURCE_SUBSTITUTE


 
Method Detail

getPageSource

protected def getPageSource(Browser browser)


getPageSourceFileExtension

protected def getPageSourceFileExtension(Browser browser)
Here to allow smarter calculation of the extension if necessary


getReportFile

protected def getReportFile(ReportState reportState)


writePageSource

protected def writePageSource(File file, Browser browser)


writeReport

@Override
void writeReport(ReportState reportState)


 

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