Module: Webdrivers
- Defined in:
- lib/webdrivers/logger.rb,
lib/webdrivers/common.rb,
lib/webdrivers/system.rb,
lib/webdrivers/network.rb,
lib/webdrivers/iedriver.rb,
lib/webdrivers/geckodriver.rb,
lib/webdrivers/mswebdriver.rb,
lib/webdrivers/chromedriver.rb
Overview
Code adapted from Selenium Implementation github.com/SeleniumHQ/selenium/blob/master/rb/lib/selenium/webdriver/common/logger.rb
Defined Under Namespace
Classes: Chromedriver, Common, ConnectionError, Geckodriver, IEdriver, Logger, MSWebdriver, Network, NetworkError, System, VersionError
Class Attribute Summary collapse
-
.install_dir ⇒ Object
Returns the value of attribute install_dir.
-
.proxy_addr ⇒ Object
Returns the value of attribute proxy_addr.
-
.proxy_pass ⇒ Object
Returns the value of attribute proxy_pass.
-
.proxy_port ⇒ Object
Returns the value of attribute proxy_port.
-
.proxy_user ⇒ Object
Returns the value of attribute proxy_user.
Class Method Summary collapse
-
.cache_time ⇒ Object
Returns the amount of time (Seconds) the gem waits between two update checks.
-
.cache_time=(value) ⇒ Object
Set the amount of time (Seconds) the gem waits between two update checks.
-
.configure {|_self| ... } ⇒ Object
Provides a convenient way to configure the gem.
- .logger ⇒ Object
- .net_http_ssl_fix ⇒ Object
Class Attribute Details
.install_dir ⇒ Object
Returns the value of attribute install_dir.
21 22 23 |
# File 'lib/webdrivers/common.rb', line 21 def install_dir @install_dir end |
.proxy_addr ⇒ Object
Returns the value of attribute proxy_addr.
21 22 23 |
# File 'lib/webdrivers/common.rb', line 21 def proxy_addr @proxy_addr end |
.proxy_pass ⇒ Object
Returns the value of attribute proxy_pass.
21 22 23 |
# File 'lib/webdrivers/common.rb', line 21 def proxy_pass @proxy_pass end |
.proxy_port ⇒ Object
Returns the value of attribute proxy_port.
21 22 23 |
# File 'lib/webdrivers/common.rb', line 21 def proxy_port @proxy_port end |
.proxy_user ⇒ Object
Returns the value of attribute proxy_user.
21 22 23 |
# File 'lib/webdrivers/common.rb', line 21 def proxy_user @proxy_user end |
Class Method Details
.cache_time ⇒ Object
Returns the amount of time (Seconds) the gem waits between two update checks.
26 27 28 |
# File 'lib/webdrivers/common.rb', line 26 def cache_time @cache_time || 0 end |
.cache_time=(value) ⇒ Object
Set the amount of time (Seconds) the gem waits between two update checks. Disable Common.cache_warning.
34 35 36 37 |
# File 'lib/webdrivers/common.rb', line 34 def cache_time=(value) Common.cache_warning = true @cache_time = value end |
.configure {|_self| ... } ⇒ Object
Provides a convenient way to configure the gem.
55 56 57 |
# File 'lib/webdrivers/common.rb', line 55 def configure yield self end |
.logger ⇒ Object
39 40 41 |
# File 'lib/webdrivers/common.rb', line 39 def logger @logger ||= Webdrivers::Logger.new end |
.net_http_ssl_fix ⇒ Object
59 60 61 62 |
# File 'lib/webdrivers/common.rb', line 59 def net_http_ssl_fix raise 'Webdrivers.net_http_ssl_fix is no longer available.' \ ' Please see https://github.com/titusfortner/webdrivers#ssl_connect-errors.' end |