Exception: Capybara::Poltergeist::InvalidSelector

Inherits:
ClientError show all
Defined in:
lib/capybara/poltergeist/errors.rb

Instance Attribute Summary

Attributes inherited from ClientError

#response

Instance Method Summary collapse

Methods inherited from ClientError

#initialize

Constructor Details

This class inherits a constructor from Capybara::Poltergeist::ClientError

Instance Method Details

#messageObject


76
77
78
79
# File 'lib/capybara/poltergeist/errors.rb', line 76

def message
  "The browser raised a syntax error while trying to evaluate " \
    "#{method} selector #{selector.inspect}"
end

#methodObject


68
69
70
# File 'lib/capybara/poltergeist/errors.rb', line 68

def method
  response['args'][0]
end

#selectorObject


72
73
74
# File 'lib/capybara/poltergeist/errors.rb', line 72

def selector
  response['args'][1]
end