Exception: Capybara::Webkit::JavaScriptError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/capybara/webkit/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ JavaScriptError

Returns a new instance of JavaScriptError.



49
50
51
52
# File 'lib/capybara/webkit/errors.rb', line 49

def initialize(errors)
  @javascript_errors = errors
  super(errors.join(","))
end

Instance Attribute Details

#javascript_errorsObject (readonly)

Returns the value of attribute javascript_errors.



54
55
56
# File 'lib/capybara/webkit/errors.rb', line 54

def javascript_errors
  @javascript_errors
end