Class: Webdrivers::IEdriver

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

Class Method Summary collapse

Methods inherited from Common

driver_path, remove, update

Class Method Details

.base_urlString

Returns url with domain for calls to get this driver.

Returns:

  • (String)

36
37
38
# File 'lib/webdrivers/iedriver.rb', line 36

def base_url
  'https://selenium-release.storage.googleapis.com/'
end

.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