Skip to content

Commit

Permalink
Restore missing error class and limit error class lookup scope (#6137)
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole authored and lmtierney committed Jul 30, 2018
1 parent 8d98f32 commit 59f93ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rb/lib/selenium/webdriver/common/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def self.for_code(code)
ERRORS.fetch(code)
when String
klass_name = code.split(' ').map(&:capitalize).join.sub(/Error$/, '')
const_get("#{klass_name}Error")
const_get("#{klass_name}Error", false)
end
rescue KeyError, NameError
WebDriverError
Expand Down Expand Up @@ -264,6 +264,7 @@ class UnsupportedOperationError < WebDriverError; end

# Aliases for OSS dialect.
ScriptTimeoutError = ScriptTimeOutError
TimeoutError = TimeOutError
NoAlertOpenError = NoAlertPresentError

# Aliases for backwards compatibility.
Expand Down

0 comments on commit 59f93ef

Please sign in to comment.