Sha256: db77b52b020c468c1b299f79a5e0fc13fd0ed7679adbf03325060140e0a2b6f2
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 KB
Contents
# frozen_string_literal: true # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Appium module Core class Base class Capabilities < ::Selenium::WebDriver::Remote::Capabilities # TODO: Move to 'Options' way instead of 'Capabilities'. # Selenium 5 will have Options instead of 'Capabilities'. # https://github.com/SeleniumHQ/selenium/blob/trunk/rb/lib/selenium/webdriver/common/options.rb # Then, Ruby client also shoud move to the Options way. # Appium's capabilities could change by depending on Appium versions. So it does not have # standard options like chrome and firefox etc. So, the implementation should differ from # other browsers. But here should inherit `Options` to follow Selenium. # Method override # FIXME: when we drop "symbolize_keys", this can be removed. 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 TypeError, "expected String or Symbol, got #{key.inspect}:#{key.class}" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appium_lib_core-9.1.3 | lib/appium_lib_core/common/base/capabilities.rb |
appium_lib_core-9.1.2 | lib/appium_lib_core/common/base/capabilities.rb |