class Selenium::WebDriver::DevTools::ConsoleEvent

Attributes

args[RW]
timestamp[RW]
type[RW]

Public Class Methods

new(type:, timestamp:, args:) click to toggle source
# File lib/selenium/webdriver/devtools/console_event.rb, line 26
def initialize(type:, timestamp:, args:)
  @type = type.to_sym
  @timestamp = Time.at(timestamp / 1000)
  @args = args.map do |arg|
    arg.key?('value') ? arg['value'] : arg
  end
end