Sha256: 3883d6e7b9e76dd16e0368348048f3388727c1ee81759f597600cff265c87f8f
Contents?: true
Size: 1.69 KB
Versions: 4
Compression:
Stored size: 1.69 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 ::Appium::Core::Error::ArgumentError, "expected String or Symbol, got #{key.inspect}:#{key.class}" end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems