A reporter can take a snapshot of the browser state, using a given name as the base for whatever it produces. A common usage of a reporter is to take snapshots before and after test methods.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addListener(ReportingListener listener) Registers an object to be notified when a report is taken. |
|
void |
writeReport(ReportState reportState) Takes a snapshot of the given browser's state, using the given name as the base name for anything (e.g. file) that is produced. |
Registers an object to be notified when a report is taken. Adding a listener that has previously been added (based on equals()) is a noop.
Takes a snapshot of the given browser's state, using the given name as the base name for anything (e.g. file) that is produced.
Groovy API Documentation for Geb 2.2 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org