Skip to main content

CDP会话事件

CDPSessionEvent 对象通过页面的 CdpSession.Event() 方法返回。

每个对象代表一个命名事件,并允许在事件触发时对其进行处理。

🌐 Each object represents a named event and allows handling of the event when it is raised.


属性

🌐 Properties

EventName

Added in: 1.30 cdpSessionEvent.EventName

用法

CdpSessionEvent.EventName

类型


事件

🌐 Events

event OnEvent

Added in: v1.30 cdpSessionEvent.event OnEvent

用法

CdpSessionEvent.OnEvent += async (_, jsonElement) => {};

事件数据

  • [JsonElement?]