Class: Webdrivers::IEdriver
Class Method Summary collapse
Methods inherited from Common
Class Method Details
.current ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/webdrivers/iedriver.rb', line 8 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(/IEDriverServer.exe (\d\.\d+\.\d*\.\d*)/)[1] end |
.latest ⇒ Object
16 17 18 |
# File 'lib/webdrivers/iedriver.rb', line 16 def latest downloads.keys.sort.last end |