lib/watir/capabilities.rb in watir-6.9.1 vs lib/watir/capabilities.rb in watir-6.10.0
- old
+ new
@@ -48,11 +48,11 @@
http_client = @options.delete(:http_client)
%i(open_timeout read_timeout client_timeout).each do |t|
next if http_client.nil? || !respond_to?(t)
- warn "You can now pass #{t} value directly into Watir::Browser opt without needing to use :http_client"
+ Watir.logger.warn "You can now pass #{t} value directly into Watir::Browser opt without needing to use :http_client"
end
http_client ||= Selenium::WebDriver::Remote::Http::Default.new
http_client.timeout = client_timeout if client_timeout
@@ -109,10 +109,10 @@
def process_capabilities
caps = @options.delete(:desired_capabilities)
if caps
- warn 'You can now pass values directly into Watir::Browser opt without needing to use :desired_capabilities'
+ Watir.logger.warn 'You can now pass values directly into Watir::Browser opt without needing to use :desired_capabilities'
@selenium_opts.merge!(@options)
else
caps = Selenium::WebDriver::Remote::Capabilities.send @browser, @options
end
\ No newline at end of file