mokr.browser.console

Module Contents

Classes

ConsoleMessage

Representation of console messages, dispatched on console event in

class mokr.browser.console.ConsoleMessage(kind: str, text: str, args: list[mokr.execution.JavascriptHandle] = None)

Representation of console messages, dispatched on console event in mokr.browser.Page.

Parameters:
  • kind (str) – The type of message.

  • text (str) – The message body.

  • args (list[JavascriptHandle], optional) – Arguments attached to this message. Defaults to None.

property kind: str

Return type of this message.

property text: str

Return text representation of the message body.

property args: list[mokr.execution.JavascriptHandle]

Return list of argumentss (JavascriptHandle) of this message.