Exception: Capybara::Poltergeist::PhantomJSFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/capybara/poltergeist/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ PhantomJSFailed

Returns a new instance of PhantomJSFailed.



131
132
133
# File 'lib/capybara/poltergeist/errors.rb', line 131

def initialize(status)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



129
130
131
# File 'lib/capybara/poltergeist/errors.rb', line 129

def status
  @status
end

Instance Method Details

#messageObject



135
136
137
138
139
# File 'lib/capybara/poltergeist/errors.rb', line 135

def message
  "PhantomJS returned non-zero exit status #{status.exitstatus}. Make sure phantomjs runs successfully " \
    "on your system. You can test this by just running the `phantomjs` command which should give you " \
    "a Javascript REPL."
end