123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::DevTools::ConsoleEvent

Relationships & Source Files
Inherits: Object
Defined in: rb/lib/selenium/webdriver/devtools/console_event.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(type:, timestamp:, args:) ⇒ ConsoleEvent

[ GitHub ]

  
# File 'rb/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

Instance Attribute Details

#args (rw)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/devtools/console_event.rb', line 24

attr_accessor :type, :timestamp, :args

#timestamp (rw)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/devtools/console_event.rb', line 24

attr_accessor :type, :timestamp, :args

#type (rw)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/devtools/console_event.rb', line 24

attr_accessor :type, :timestamp, :args