123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::BiDi::FilterBy

Relationships & Source Files
Inherits: Object
Defined in: rb/lib/selenium/webdriver/bidi/log/filter_by.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(level) ⇒ FilterBy

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/log/filter_by.rb', line 26

def initialize(level)
  @level = level
end

Class Method Details

.log_level(level = nil)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/log/filter_by.rb', line 30

def self.log_level(level = nil)
  unless %w[debug error info warning].include?(level)
    raise Error::WebDriverError,
          "Valid log levels are 'debug', 'error', 'info' and 'warning'. Received: #{level}"
  end
  FilterBy.new(level)
end

Instance Attribute Details

#level (rw)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/bidi/log/filter_by.rb', line 24

attr_accessor :level