Class: Selenium::WebDriver::DevTools::ExceptionEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/devtools/exception_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description:, timestamp:, stacktrace:) ⇒ ExceptionEvent

Returns a new instance of ExceptionEvent.


27
28
29
30
31
# File 'lib/selenium/webdriver/devtools/exception_event.rb', line 27

def initialize(description:, timestamp:, stacktrace:)
  @description = description
  @timestamp = Time.at(timestamp / 1000)
  @stacktrace = stacktrace
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.


25
26
27
# File 'lib/selenium/webdriver/devtools/exception_event.rb', line 25

def description
  @description
end

#stacktraceObject

Returns the value of attribute stacktrace.


25
26
27
# File 'lib/selenium/webdriver/devtools/exception_event.rb', line 25

def stacktrace
  @stacktrace
end

#timestampObject

Returns the value of attribute timestamp.


25
26
27
# File 'lib/selenium/webdriver/devtools/exception_event.rb', line 25

def timestamp
  @timestamp
end