Class: Webdrivers::Chromedriver
- Defined in:
- lib/webdrivers/chromedriver.rb
Class Method Summary collapse
Methods inherited from Common
download, latest, remove, update
Class Method Details
.current ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/webdrivers/chromedriver.rb', line 7 def current Webdrivers.logger.debug "Checking current version" return nil unless downloaded? string = %x(#{binary} --version) Webdrivers.logger.debug "Current version of #{binary} is #{string}" normalize string.match(/ChromeDriver (\d\.\d+)/)[1] end |