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.



115
116
117
# File 'lib/capybara/poltergeist/errors.rb', line 115

def initialize(status)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



113
114
115
# File 'lib/capybara/poltergeist/errors.rb', line 113

def status
  @status
end

Instance Method Details

#messageObject



119
120
121
122
123
# File 'lib/capybara/poltergeist/errors.rb', line 119

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