Exception: Selenium::WebDriver::Error::WebDriverError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/selenium/webdriver/common/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = '') ⇒ WebDriverError

Returns a new instance of WebDriverError.



48
49
50
51
# File 'lib/selenium/webdriver/common/error.rb', line 48

def initialize(msg = '')
  # Remove this conditional when all the error pages have been documented
  super(URLS[class_name] ? "#{msg}; #{SUPPORT_MSG} #{URLS[class_name]}" : msg)
end

Instance Method Details

#class_nameObject

steep:ignore:start



54
55
56
# File 'lib/selenium/webdriver/common/error.rb', line 54

def class_name
  self.class.name.split('::')&.last&.to_sym
end