Method: Selenium::WebDriver::Script#add_console_message_handler

Defined in:
lib/selenium/webdriver/common/script.rb

#add_console_message_handler(&block) ⇒ int

Returns id of the handler.

Returns:

  • (int)

    id of the handler



28
29
30
# File 'lib/selenium/webdriver/common/script.rb', line 28

def add_console_message_handler(&block)
  @log_handler.add_message_handler('console', &block)
end