File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 5
5
require 'forwardable' unless defined? Forwardable
6
6
require_relative 'appium_lib/rails/duplicable'
7
7
8
+ # Init global driver
8
9
$driver = nil
9
10
10
- # @private
11
- # Invoke top level methods on last created Appium driver.
12
- def self . method_missing method , *args , &block
13
- raise "driver is nil. called #{ method } " if $driver == nil
14
-
15
- if $driver. respond_to? ( method )
16
- # puts "[method_missing] Calling driver.send for #{method}"
17
- $driver. send ( method , *args , &block )
18
- elsif self . respond_to? ( method )
19
- # puts "[method_missing] Calling super with args for #{method}"
20
- super ( *args , &block )
21
- else
22
- # puts "[method_missing] Calling super (no args) for #{method}"
23
- super
24
- end
25
- end
26
-
27
11
require_relative 'appium_lib/logger'
28
12
require_relative 'appium_lib/driver'
You can’t perform that action at this time.
0 commit comments