module Selenium::WebDriver::Error
Constants
- ElementNotDisplayedError
#<RDoc::Comment:0x2995bb44>
#<RDoc::Comment:0x28828714>
- 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:0x29521e84>
#<RDoc::Comment:0x295295e4>
- ScriptTimeOutError
- UnexpectedJavascriptError
#<RDoc::Comment:0x2987ad24>
#<RDoc::Comment:0x298b4074>
- UnhandledError
#<RDoc::Comment:0x29810c58>
#<RDoc::Comment:0x29881ee4>
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.gsub('Error','')}Error") rescue NameError WebDriverError end