Method: Selenium::WebDriver::Remote::Http::Default#timeout=

Defined in:
lib/selenium/webdriver/remote/http/default.rb

#timeout=(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Deprecated.

Please set the specific desired timeout #read_timeout or #open_timeout directly.

Maintaining backward compatibility.

Parameters:

  • value (Numeric)
    • Timeout in seconds to apply to both open timeout and read timeouts.



47
48
49
50
51
# File 'lib/selenium/webdriver/remote/http/default.rb', line 47

def timeout=(value)
  Kernel.warn 'Selenium::WebDriver::Remote::Http::Default#timeout= is deprecated. Use #read_timeout= or #open_timeout= instead'
  self.open_timeout = value
  self.read_timeout = value
end