Sha256: 01fa32af52aaf01c452612b6f57d2fe8b554e501e63e3c7ed475e9b632882161
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
module Appium module Core module Device module DeviceLock def self.add_methods ::Appium::Core::Device.add_endpoint_method(:lock) do def lock(duration = nil) opts = duration ? { seconds: duration } : {} execute :lock, {}, opts end end ::Appium::Core::Device.add_endpoint_method(:device_locked?) do def device_locked? execute :device_locked? end end ::Appium::Core::Device.add_endpoint_method(:unlock) do def unlock execute :unlock end end end end # module DeviceLock end # module Device end # module Core end # module Appium
Version data entries
3 entries across 3 versions & 1 rubygems