MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / clear_console_handlers

Method clear_console_handlers

py/selenium/webdriver/remote/script.py:376–378  ·  view source on GitHub ↗

Remove every console handler, including those added by ``add_console_message_handler()``.

(self)

Source from the content-addressed store, hash-verified

374 self._script.remove_console_handler(callback_id)
375
376 def clear_console_handlers(self) -> None:
377 """Remove every console handler, including those added by ``add_console_message_handler()``."""
378 self._script.clear_console_handlers()
379
380 def add_console_message_handler(self, callback: Callable) -> int:
381 """Add a handler called with a console log entry for each console message.

Calls

no outgoing calls