Class: Webdrivers::IEdriver
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/iedriver.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(/IEDriverServer.exe (\d\.\d+\.\d*\.\d*)/)[1] end |