Sha256: 38cd24861e7e83a077bb5be44dd7626c17882102f778b7b95ef11ac02b2c833f

Contents?: true

Size: 1.24 KB

Versions: 40

Compression:

Stored size: 1.24 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 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-4.7.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.7.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.6.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.0.0.beta3 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.0.0.beta2 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-5.0.0.beta1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.5.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.4.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.4.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.3.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.3.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.2.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.2.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.1.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.1.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-4.0.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-3.11.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-3.11.0 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-3.10.1 lib/appium_lib_core/android/device/auth_finger_print.rb
appium_lib_core-3.10.0 lib/appium_lib_core/android/device/auth_finger_print.rb