module Selenium::WebDriver::Error

Constants

ElementNotDisplayedError

#<RDoc::Comment:0xa4f7c70>


#<RDoc::Comment:0xa47bf08>

Errors

@api private

NoAlertOpenError

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

NoAlertPresentError

aliased for backwards compatibility

ObsoleteElementError

#<RDoc::Comment:0xa5163b4>


#<RDoc::Comment:0xa2caa60>

ScriptTimeOutError
UnexpectedJavascriptError

#<RDoc::Comment:0xa48afbc>


#<RDoc::Comment:0xa394cac>

UnhandledError

#<RDoc::Comment:0xa4a90c0>


#<RDoc::Comment:0xafc8e60>

Public Class Methods

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

  klass_name = code.split(' ').map(&:capitalize).join
  Error.const_get("#{klass_name}Error")
rescue NameError
  WebDriverError
end