new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Playwright · API reference · all subjects

consolemessage/methods

9 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

ConsoleMessage.args method

Returns an Array of JSHandle objects representing the list of arguments passed to a console function call.

ConsoleMessage.location method for JavaScript and Python

Returns an object with the following properties: url (string) - URL of the resource, line (int) - 0-based line number in the resource, column (int) - 0-based column number in the resource, lineNumber (int) - deprecated, use line instead, columnNumber (int) - deprecated, use column instead. Available in JavaScript and Python only, since v1.8.

ConsoleMessage.location method for C# and Java

Returns a string containing the URL of the resource followed by 0-based line and column numbers in the resource formatted as URL:line:column. Available in C# and Java only, since v1.8.

ConsoleMessage.page method

Returns the page that produced this console message, or null if there is no associated page. Available since v1.34.

ConsoleMessage.text method

Returns a string containing the text of the console message. Available since v1.8.

ConsoleMessage.timestamp method

Returns a float representing the timestamp of the console message in milliseconds since the Unix epoch. Available since v1.59.

ConsoleMessage.type method for JavaScript and Python

Returns a ConsoleMessageType, which is one of the following string values: 'log', 'debug', 'info', 'error', 'warning', 'dir', 'dirxml', 'table', 'trace', 'clear', 'startGroup', 'startGroupCollapsed', 'endGroup', 'assert', 'profile', 'profileEnd', 'count', 'time', 'timeEnd'. Available in JavaScript and Python only, since v1.8.

ConsoleMessage.type method for C# and Java

Returns a string, one of the following values: 'log', 'debug', 'info', 'error', 'warning', 'dir', 'dirxml', 'table', 'trace', 'clear', 'startGroup', 'startGroupCollapsed', 'endGroup', 'assert', 'profile', 'profileEnd', 'count', 'timeEnd'. Available in C# and Java only, since v1.8.

ConsoleMessage.worker method

Returns the web worker or service worker that produced this console message, or null if there is no associated worker. Note that console messages from web workers also have non-null page property. Available since v1.57.

Give your agent this brain