Class: Webdrivers::IEdriver

Inherits:
Common
  • Object
show all
Defined in:
lib/webdrivers/iedriver.rb

Class Method Summary collapse

Methods inherited from Common

download, latest, remove, update

Class Method Details

.currentObject



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