class Selenium::WebDriver::Script
def add_console_message_handler(&)
-
(int)
- id of the handler
def add_console_message_handler(&) @log_handler.add_message_handler('console', &) end
def add_javascript_error_handler(&)
-
(int)
- id of the handler
def add_javascript_error_handler(&) @log_handler.add_message_handler('javascript', &) end
def initialize(bridge)
def initialize(bridge) @log_handler = BiDi::LogHandler.new(bridge.bidi) end
def remove_console_message_handler(id)
-
id
(int
) -- of the handler previously added
def remove_console_message_handler(id) @log_handler.remove_message_handler(id) end