Exception: Selenium::WebDriver::Error::WebDriverError
- Inherits:
-
StandardError
- Object
- StandardError
- Selenium::WebDriver::Error::WebDriverError
- Defined in:
- rb/lib/selenium/webdriver/common/error.rb
Direct Known Subclasses
DetachedShadowRootError, ElementClickInterceptedError, ElementNotInteractableError, InsecureCertificateError, InvalidArgumentError, InvalidCookieDomainError, InvalidElementStateError, InvalidSelectorError, InvalidSessionIdError, JavascriptError, MoveTargetOutOfBoundsError, NoSuchAlertError, NoSuchCookieError, NoSuchDriverError, NoSuchElementError, NoSuchFrameError, NoSuchShadowRootError, NoSuchWindowError, ScriptTimeoutError, SessionNotCreatedError, StaleElementReferenceError, TimeoutError, UnableToCaptureScreenError, UnableToSetCookieError, UnexpectedAlertOpenError, UnknownCommandError, UnknownError, UnknownMethodError, UnsupportedOperationError
Instance Method Summary collapse
- #class_name ⇒ Object
-
#initialize(msg = '') ⇒ WebDriverError
constructor
A new instance of WebDriverError.
Constructor Details
#initialize(msg = '') ⇒ WebDriverError
Returns a new instance of WebDriverError.
48 49 50 51 |
# File 'rb/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_name ⇒ Object
53 54 55 |
# File 'rb/lib/selenium/webdriver/common/error.rb', line 53 def class_name self.class.name&.split('::')&.last&.to_sym end |