Sha256: 7c3d92600c7d355aad22e3fc8911b2a501bc519185b933a8835e89326632e0cd

Contents?: true

Size: 1.29 KB

Versions: 40

Compression:

Stored size: 1.29 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
    module Android
      module Device
        module Authentication
          def self.add_methods
            ::Appium::Core::Device.add_endpoint_method(:finger_print) do
              def finger_print(finger_id)
                unless (1..10).cover? finger_id.to_i
                  raise ::Appium::Core::Error::ArgumentError,
                        "finger_id should be integer between 1 to 10. Not #{finger_id}"
                end

                execute(:finger_print, {}, { fingerprintId: finger_id.to_i })
              end
            end
          end # def self.emulator_commands
        end # module Emulator
      end # module Device
    end # module Android
  end # module Core
end # module Appium

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
appium_lib_core-7.2.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-7.1.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-7.1.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-7.0.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.5.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.4.2 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.4.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.4.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.3.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.2.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.2.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.1.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-6.0.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.8.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.7.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.6.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.5.2 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.5.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.5.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.4.0 lib/appium_lib_core/android/device/auth_finger_print.rb