Class: Webdrivers::IEdriver

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

Class Method Summary collapse

Methods inherited from Common

binary, desired_version, download, driver_path, remove, update, version, version=

Class Method Details

.current_versionGem::Version

Returns current IEDriverServer.exe version.

Returns:

  • (Gem::Version)

14
15
16
17
18
19
20
21
22
# File 'lib/webdrivers/iedriver.rb', line 14

def current_version
  Webdrivers.logger.debug 'Checking current version'
  return nil unless exists?

  version = binary_version
  return nil if version.nil?

  normalize_version version.match(/IEDriverServer.exe (\d\.\d+\.\d+)/)[1]
end

.latest_versionGem::Version

Returns latest available IEDriverServer.exe version.

Returns:

  • (Gem::Version)

28
29
30
# File 'lib/webdrivers/iedriver.rb', line 28

def latest_version
  @latest_version ||= with_cache(file_name) { downloads.keys.max }
end