Class: Appium::Core::Base::Capabilities

Inherits:
Selenium::WebDriver::Remote::Capabilities
  • Object
show all
Defined in:
lib/appium_lib_core/common/base/capabilities.rb

Instance Method Summary collapse

Instance Method Details

#convert_key(key) ⇒ Object

Method override FIXME: when we drop “symbolize_keys”, this can be removed.



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/appium_lib_core/common/base/capabilities.rb', line 29

def convert_key(key)
  case key
  when String
    key.to_s
  when Symbol
    # here do not convert to camel case
    key.to_s
  else
    raise ::Appium::Core::Error::ArgumentError, "expected String or Symbol, got #{key.inspect}:#{key.class}"
  end
end