2021-01-07 11:46:05 -08:00
|
|
|
# class: ConsoleMessage
|
|
|
|
|
|
|
|
[ConsoleMessage] objects are dispatched by page via the [`event: Page.console`] event.
|
|
|
|
|
|
|
|
## method: ConsoleMessage.args
|
|
|
|
- returns: <[Array]<[JSHandle]>>
|
|
|
|
|
2021-05-05 17:18:07 -03:00
|
|
|
List of arguments passed to a `console` function call. See also [`event: Page.console`].
|
|
|
|
|
2021-01-07 11:46:05 -08:00
|
|
|
## method: ConsoleMessage.location
|
2021-02-10 12:54:44 -08:00
|
|
|
* langs: js, python
|
2021-01-07 11:46:05 -08:00
|
|
|
- returns: <[Object]>
|
|
|
|
- `url` <[string]> URL of the resource.
|
|
|
|
- `lineNumber` <[int]> 0-based line number in the resource.
|
|
|
|
- `columnNumber` <[int]> 0-based column number in the resource.
|
|
|
|
|
2021-02-10 12:54:44 -08:00
|
|
|
## method: ConsoleMessage.location
|
|
|
|
* langs: csharp, java
|
|
|
|
- returns: <[string]>
|
|
|
|
|
|
|
|
URL of the resource followed by 0-based line and column numbers in the resource formatted as `URL:line:column`.
|
|
|
|
|
2021-01-07 11:46:05 -08:00
|
|
|
## method: ConsoleMessage.text
|
|
|
|
- returns: <[string]>
|
|
|
|
|
2021-05-05 17:18:07 -03:00
|
|
|
The text of the console message.
|
|
|
|
|
2021-01-07 11:46:05 -08:00
|
|
|
## method: ConsoleMessage.type
|
|
|
|
- returns: <[string]>
|
|
|
|
|
|
|
|
One of the following values: `'log'`, `'debug'`, `'info'`, `'error'`, `'warning'`, `'dir'`, `'dirxml'`, `'table'`,
|
|
|
|
`'trace'`, `'clear'`, `'startGroup'`, `'startGroupCollapsed'`, `'endGroup'`, `'assert'`, `'profile'`, `'profileEnd'`,
|
|
|
|
`'count'`, `'timeEnd'`.
|