Module: Webdrivers
- Defined in:
- lib/webdrivers/logger.rb,
lib/webdrivers/common.rb,
lib/webdrivers/system.rb,
lib/webdrivers/network.rb,
lib/webdrivers/railtie.rb,
lib/webdrivers/version.rb,
lib/webdrivers/iedriver.rb,
lib/webdrivers/geckodriver.rb,
lib/webdrivers/chromedriver.rb,
lib/webdrivers/chrome_finder.rb
Overview
Code adapted from Selenium Implementation github.com/SeleniumHQ/selenium/blob/master/rb/lib/selenium/webdriver/common/logger.rb
Defined Under Namespace
Classes: ChromeFinder, Chromedriver, Common, ConnectionError, Geckodriver, IEdriver, Logger, Network, NetworkError, Railtie, System, VersionError
Constant Summary collapse
- VERSION =
'4.0.0'
Class Attribute Summary collapse
-
.cache_time ⇒ Object
Returns the amount of time (Seconds) the gem waits between two update checks.
-
.install_dir ⇒ String
Returns the install (download) directory path for the drivers.
-
.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
-
.configure {|_self| ... } ⇒ Object
Provides a convenient way to configure the gem.
- .logger ⇒ Object
- .net_http_ssl_fix ⇒ Object
Class Attribute Details
.cache_time ⇒ Object
Returns the amount of time (Seconds) the gem waits between two update checks.
28 29 30 |
# File 'lib/webdrivers/common.rb', line 28 def cache_time (@cache_time || ENV['WD_CACHE_TIME']).to_i end |
.install_dir ⇒ String
Returns the install (download) directory path for the drivers.
36 37 38 |
# File 'lib/webdrivers/common.rb', line 36 def install_dir @install_dir || ENV['WD_INSTALL_DIR'] || File.(File.join(ENV['HOME'], '.webdrivers')) end |
.proxy_addr ⇒ Object
Returns the value of attribute proxy_addr.
22 23 24 |
# File 'lib/webdrivers/common.rb', line 22 def proxy_addr @proxy_addr end |
.proxy_pass ⇒ Object
Returns the value of attribute proxy_pass.
22 23 24 |
# File 'lib/webdrivers/common.rb', line 22 def proxy_pass @proxy_pass end |
.proxy_port ⇒ Object
Returns the value of attribute proxy_port.
22 23 24 |
# File 'lib/webdrivers/common.rb', line 22 def proxy_port @proxy_port end |
.proxy_user ⇒ Object
Returns the value of attribute proxy_user.
22 23 24 |
# File 'lib/webdrivers/common.rb', line 22 def proxy_user @proxy_user end |
Class Method Details
.configure {|_self| ... } ⇒ Object
Provides a convenient way to configure the gem.
56 57 58 |
# File 'lib/webdrivers/common.rb', line 56 def configure yield self end |
.logger ⇒ Object
40 41 42 |
# File 'lib/webdrivers/common.rb', line 40 def logger @logger ||= Webdrivers::Logger.new end |
.net_http_ssl_fix ⇒ Object
60 61 62 63 |
# File 'lib/webdrivers/common.rb', line 60 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 |