Gatherer

Gatherer

Base class for all gatherers; defines pass lifecycle methods. The artifact from the gatherer is the last not-undefined value returned by a lifecycle method. All methods can return the artifact value directly or return a Promise that resolves to that value.

If an Error is thrown (or a Promise that rejects on an Error), the GatherRunner will check for a fatal property on the Error. If not set to true, the runner will treat it as an error internal to the gatherer and continue execution of any remaining gatherers.

Constructor

new Gatherer()

Source:

Members

Methods

afterPass(optionsnon-null, loadData) → {*|!Promise.<*>}

Called after target page is loaded, all gatherer pass methods have been executed, and — if generated in this pass — the trace is ended. The trace and record of network activity are provided in loadData.

Source:
Parameters:
Name Type Description
options Object
loadData
Returns:
Type:
* | !Promise.<*>

beforePass(optionsnon-null)

Called before navigation to target url.

Source:
Parameters:
Name Type Description
options Object

pass(optionsnon-null)

Called after target page is loaded. If a trace is enabled for this pass, the trace is still being recorded.

Source:
Parameters:
Name Type Description
options Object