console
ConsoleMessage
dataclass
Console message.
Source code in zendriver/cdp/console.py
column: typing.Optional[int] = None
class-attribute
instance-attribute
level: str
instance-attribute
line: typing.Optional[int] = None
class-attribute
instance-attribute
source: str
instance-attribute
text: str
instance-attribute
url: typing.Optional[str] = None
class-attribute
instance-attribute
__init__(source, level, text, url=None, line=None, column=None)
from_json(json)
classmethod
Source code in zendriver/cdp/console.py
to_json()
Source code in zendriver/cdp/console.py
MessageAdded
dataclass
Issued when new console message is added.
Source code in zendriver/cdp/console.py
clear_messages()
disable()
Disables console domain, prevents further console messages from being reported to the client.
Source code in zendriver/cdp/console.py
enable()
Enables console domain, sends the messages collected so far to the client by means of the
messageAdded
notification.