module Selenium::WebDriver::Error

Constants

ElementNotDisplayedError

Raised to indicate that although an element is present on the DOM, it is not visible, and so is not able to be interacted with.

Errors

@api private

NoAlertOpenError

Indicates that a user has tried to access an alert when one is not present.

ObsoleteElementError

Indicates that a reference to an element is now “stale” - the element no longer appears in the DOM of the page.

UnexpectedJavascriptError

An error occurred while executing user supplied JavaScript.

UnhandledError

An unknown server-side error occurred while processing the command.

Public Class Methods

for_code(code) click to toggle source
# File lib/selenium/webdriver/common/error.rb, line 198
def for_code(code)
  return if [nil, 0].include? code

  Errors[code - 1] || WebDriverError
end