File tree 3 files changed +1
-126
lines changed
3 files changed +1
-126
lines changed Original file line number Diff line number Diff line change 3
3
Encoding . default_internal = Encoding ::UTF_8
4
4
5
5
require 'forwardable' unless defined? Forwardable
6
- require_relative 'appium_lib/rails/duplicable'
7
6
8
7
# Init global driver
9
8
$driver = nil
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ def initialize(opts = {})
439
439
440
440
# Returns a hash of the driver attributes
441
441
def driver_attributes
442
- attributes = {
442
+ {
443
443
caps : @caps ,
444
444
automation_name : @automation_name ,
445
445
custom_url : @custom_url ,
@@ -455,12 +455,6 @@ def driver_attributes
455
455
wait_timeout : @appium_wait_timeout ,
456
456
wait_interval : @appium_wait_interval
457
457
}
458
-
459
- # Return duplicates so attributes are immutable
460
- attributes . each do |key , value |
461
- attributes [ key ] = value . duplicable? ? value . dup : value
462
- end
463
- attributes
464
458
end
465
459
466
460
def device_is_android?
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments