@cloudflare/puppeteer
Version:
A high-level API to control headless Chrome over the DevTools Protocol
55 lines • 1.15 kB
JavaScript
/**
* @license
* Copyright 2020 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* ConsoleMessage objects are dispatched by page via the 'console' event.
* @public
*/
export class ConsoleMessage {
/**
* @internal
*/
constructor(type, text, args, stackTraceLocations) {
this.
this.
this.
this.
}
/**
* The type of the console message.
*/
type() {
return this.
}
/**
* The text of the console message.
*/
text() {
return this.
}
/**
* An array of arguments passed to the console.
*/
args() {
return this.
}
/**
* The location of the console message.
*/
location() {
return this.
}
/**
* The array of locations on the stack of the console message.
*/
stackTrace() {
return this.
}
}
//# sourceMappingURL=ConsoleMessage.js.map