Module: Selenium::WebDriver::Error
- Defined in:
- lib/selenium/webdriver/common/error.rb,
lib/selenium/webdriver/remote/server_error.rb
Defined Under Namespace
Classes: ElementNotDisplayedError, ElementNotEnabledError, ElementNotSelectableError, ExpectedError, IndexOutOfBoundsError, InvalidCookieDomainError, NoCollectionError, NoScriptResultError, NoStringError, NoStringLengthError, NoStringWrapperError, NoSuchCollectionError, NoSuchDocumentError, NoSuchDriverError, NoSuchElementError, NoSuchFrameError, NoSuchWindowError, NullPointerError, ObsoleteElementError, ServerError, TimeOutError, UnableToSetCookieError, UnexpectedJavascriptError, UnhandledError, UnknownCommandError, UnknownScriptResultError, UnsupportedOperationError, WebDriverError
Constant Summary collapse
- Errors =
[ IndexOutOfBoundsError, NoCollectionError, NoStringError, NoStringLengthError, NoStringWrapperError, NoSuchDriverError, NoSuchElementError, NoSuchFrameError, UnknownCommandError, ObsoleteElementError, ElementNotDisplayedError, ElementNotEnabledError, UnhandledError, ExpectedError, ElementNotSelectableError, NoSuchDocumentError, UnexpectedJavascriptError, NoScriptResultError, UnknownScriptResultError, NoSuchCollectionError, TimeOutError, NullPointerError, NoSuchWindowError, InvalidCookieDomainError, UnableToSetCookieError ]
Class Method Summary collapse
Class Method Details
.for_code(code) ⇒ Object
62 63 64 65 66 |
# File 'lib/selenium/webdriver/common/error.rb', line 62 def for_code(code) return if code == 0 Errors[code - 1] || WebDriverError end |