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

Inherits:
Object
  • Object
show all
Defined in:
rb/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.



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

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.



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

def description
  @description
end

#stacktraceObject

Returns the value of attribute stacktrace.



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

def stacktrace
  @stacktrace
end

#timestampObject

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end