function ErrorCollector(page, parent) {
    this.parent = parent;
    this.page = page;
    this.run();
  }
This plugin can monitor three types of errors inside the browser. They are console errors, console warnings and uncaught errors.
Depending on the configuration it could show the problems during the tests and throw exceptions at the scenario level to make the test fail  when it is necessary.
@param {errorsCollectorConfig} config