Sha256: 99b69381d533110d78ba0907aa16ed75e5647cc9ae7e0dcd7f9d3f4722b9cb47
Contents?: true
Size: 712 Bytes
Versions: 5
Compression:
Stored size: 712 Bytes
Contents
# encoding: utf-8 $driver = nil # @private # Invoke top level methods on last created Appium driver. def self.method_missing method, *args, &block raise "driver is nil. called #{method}" if $driver == nil if $driver.respond_to?(method) # puts "[method_missing] Calling driver.send for #{method}" $driver.send( method, *args, &block ) else # puts "[method_missing] Calling super for #{method}" super(*args, &block ) end end module Appium # @private def self.add_to_path file, path=false path = path ? "../#{path}/" : '..' path = File.expand_path path, file $:.unshift path unless $:.include? path end add_to_path __FILE__ require 'appium_lib/driver' end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
appium_lib-0.5.12 | lib/appium_lib.rb |
appium_lib-0.5.11 | lib/appium_lib.rb |
appium_lib-0.5.10 | lib/appium_lib.rb |
appium_lib-0.5.9 | lib/appium_lib.rb |
appium_lib-0.5.8 | lib/appium_lib.rb |