Method: Selenium::WebDriver::DevTools::ConsoleEvent#initialize
- Defined in:
- lib/selenium/webdriver/devtools/console_event.rb
#initialize(type:, timestamp:, args:) ⇒ ConsoleEvent
Returns a new instance of ConsoleEvent.
26 27 28 29 30 31 32 |
# File 'lib/selenium/webdriver/devtools/console_event.rb', line 26 def initialize(type:, timestamp:, args:) @type = type.to_sym @timestamp = Time.at( / 1000) @args = args.map do |arg| arg.key?('value') ? arg['value'] : arg end end |