module Selenium::WebDriver::Error
Constants
- ERROR_URL
- SUPPORT_MSG
- URLS
Public Class Methods
Source
# File lib/selenium/webdriver/common/error.rb, line 28 def self.for_error(error) return if error.nil? klass_name = error.split.map(&:capitalize).join.sub(/Error$/, '') const_get(:"#{klass_name}Error", false) rescue NameError WebDriverError end
Returns exception from its string representation. @param [String, nil] error