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

Method remove_console_handler

py/selenium/webdriver/remote/script.py:372–374  ·  view source on GitHub ↗

Remove a handler added by ``add_console_handler()``.

(self, callback_id: int)

Source from the content-addressed store, hash-verified

370 return self._script.add_console_handler(callback)
371
372 def remove_console_handler(self, callback_id: int) -> None:
373 """Remove a handler added by ``add_console_handler()``."""
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()``."""

Calls

no outgoing calls