async onPageCreated(page) {
    if (!this.opts.addToPuppeteerClass) {
      return
    }
    page.repl = () => this.repl(page)
    const browser = page.browser()
    browser.repl = () => this.repl(browser)
  }
Conditionally add a .repl() method to `page` and `browser` instances.

@ignore