Exception: Capybara::Apparition::UnsupportedFeature

Inherits:
ClientError
  • Object
show all
Defined in:
lib/capybara/apparition/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::Apparition::ClientError

Instance Method Details

#messageObject



152
153
154
# File 'lib/capybara/apparition/errors.rb', line 152

def message
  "Running version of Chrome #{version} does not support some feature: #{unsupported_message}"
end

#nameObject



140
141
142
# File 'lib/capybara/apparition/errors.rb', line 140

def name
  response['name']
end

#unsupported_messageObject



144
145
146
# File 'lib/capybara/apparition/errors.rb', line 144

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

#versionObject



148
149
150
# File 'lib/capybara/apparition/errors.rb', line 148

def version
  response['args'][1].values_at('major', 'minor', 'patch').join '.'
end