File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed
lib/selenium/webdriver/chrome
spec/unit/selenium/webdriver/chrome Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,6 @@ def initialize(opts = {})
37
37
driver_opts = opts . delete ( :driver_opts ) || { }
38
38
port = opts . delete ( :port ) || Service ::DEFAULT_PORT
39
39
40
- if opts . key? :service_log_path
41
- WebDriver . logger . deprecate ':service_log_path' , "driver_opts: {log_path: '#{ opts [ :service_log_path ] } '}"
42
- driver_opts [ :log_path ] = opts . delete :service_log_path
43
- end
44
-
45
40
@service = Service . new ( driver_path , port , driver_opts )
46
41
@service . start
47
42
opts [ :url ] = @service . uri
Original file line number Diff line number Diff line change @@ -67,14 +67,6 @@ module Chrome
67
67
driver = Driver . new ( http_client : http , driver_opts : driver_opts )
68
68
expect ( driver . instance_variable_get ( "@service" ) . instance_variable_get ( "@extra_args" ) ) . to eq args
69
69
end
70
-
71
- it 'deprecates `service_log_path`' do
72
- message = %r{\[ DEPRECATION\] `:service_log_path` is deprecated. Use `driver_opts: {log_path: \/ path\/ to\/ log}`}
73
-
74
- expect ( WebDriver . logger ) . to receive ( :deprecate ) . with ( ':service_log_path' , "driver_opts: {log_path: '/path/to/log'}" )
75
- @driver = Driver . new ( http_client : http , service_log_path : "/path/to/log" )
76
- expect ( @driver . instance_variable_get ( "@service" ) . instance_variable_get ( "@extra_args" ) ) . to eq [ "--log-path=/path/to/log" ]
77
- end
78
70
end
79
71
end # Chrome
80
72
end # WebDriver
You can’t perform that action at this time.
0 commit comments