Class: Capybara::Lightpanda::Browser::SeleniumCompat::LogEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/capybara/lightpanda/browser/selenium_compat.rb

Overview

Selenium's Logs#get(:browser) shape over Browser#console_logs. level is the Selenium severity string ("SEVERE"/"WARNING"/…), not the CDP console type, because that is what callers compare against.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



27
28
29
# File 'lib/capybara/lightpanda/browser/selenium_compat.rb', line 27

def level
  @level
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



27
28
29
# File 'lib/capybara/lightpanda/browser/selenium_compat.rb', line 27

def message
  @message
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



27
28
29
# File 'lib/capybara/lightpanda/browser/selenium_compat.rb', line 27

def timestamp
  @timestamp
end

Instance Method Details

#to_sObject



28
29
30
# File 'lib/capybara/lightpanda/browser/selenium_compat.rb', line 28

def to_s
  "#{timestamp} #{level} #{message}"
end