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