mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
25 lines
440 B
Ruby
25 lines
440 B
Ruby
module Capybara::Webkit
|
|
module JsonError
|
|
def json_create(attributes)
|
|
new(attributes["message"])
|
|
end
|
|
end
|
|
|
|
class InvalidResponseError < StandardError
|
|
extend JsonError
|
|
end
|
|
|
|
class NoResponseError < StandardError
|
|
end
|
|
|
|
class NodeNotAttachedError < Capybara::ElementNotFound
|
|
end
|
|
|
|
class ClickFailed < StandardError
|
|
extend JsonError
|
|
end
|
|
|
|
class TimeoutError < Timeout::Error
|
|
extend JsonError
|
|
end
|
|
end
|