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



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

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