Console

class Console(cdp: CDP) : Domain

This domain is deprecated - use Runtime or Log instead.

Constructors

Link copied to clipboard
constructor(cdp: CDP)

Types

Link copied to clipboard
@Serializable
data class ConsoleMessage(val source: String, val level: String, val text: String, val url: String? = null, val line: Int? = null, val column: Int? = null)

Console message.

Link copied to clipboard
@Serializable
data class MessageAddedParameter(val message: Console.ConsoleMessage)

Issued when new console message is added.

Properties

Link copied to clipboard

Issued when new console message is added.

Functions

Link copied to clipboard
suspend fun clearMessages(mode: CommandMode = CommandMode.DEFAULT)

Does nothing.

Link copied to clipboard
suspend fun disable(mode: CommandMode = CommandMode.DEFAULT)

Disables console domain, prevents further console messages from being reported to the client.

Link copied to clipboard
suspend fun enable(mode: CommandMode = CommandMode.DEFAULT)

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.