public class FirefoxDriverUpdater extends AbstractDriverUpdater
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REGISTRY_EXECUTABLE_PATH
The Windows registry key to find the executable path of the browser
|
static java.lang.String |
REGISTRY_FIREFOX_PATH
The Windows registry key suffix to get Edge information, should be prefixed by
REGISTRY_SOFTWARE_PATH |
static java.lang.String |
REGISTRY_SOFTWARE_PATH |
static java.lang.String |
URL_PREFIX_FIREFOX_DRIVER_STORAGE
The prefix to create an URL for getting the latest driver.
|
static java.lang.String |
VENDOR |
isBrowser32Bit, vendor
Constructor and Description |
---|
FirefoxDriverUpdater() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBrowserVersion()
This method will not only find out the version of the installed firefox;
it will also detect the bitness (32 or 64 bits) of the installed firefox, the result will be kept in
isBrowser32Bit() . |
java.lang.String |
getDriverDownloadURL(java.lang.String driverVersion)
According to the driver's version, get the RUL containing this driver.
|
java.lang.String |
getDriverVersion() |
java.lang.String |
getMatchedDriverVerion(java.lang.String browserVersion)
According to the browser's version, find the matched driver version.
|
boolean |
isBrowser32Bit() |
static void |
main(java.lang.String[] args) |
downloadBrowserDriver, instance, update
public static final java.lang.String REGISTRY_EXECUTABLE_PATH
public static final java.lang.String REGISTRY_SOFTWARE_PATH
public static final java.lang.String REGISTRY_FIREFOX_PATH
REGISTRY_SOFTWARE_PATH
public static final java.lang.String URL_PREFIX_FIREFOX_DRIVER_STORAGE
public static final java.lang.String VENDOR
public boolean isBrowser32Bit()
isBrowser32Bit
in interface BrowserDriverUpdater
isBrowser32Bit
in class AbstractDriverUpdater
public java.lang.String getBrowserVersion()
isBrowser32Bit()
.public java.lang.String getDriverVersion()
public java.lang.String getMatchedDriverVerion(java.lang.String browserVersion)
BrowserDriverUpdater
browserVersion
- String, the current installed browser's versionpublic java.lang.String getDriverDownloadURL(java.lang.String driverVersion)
BrowserDriverUpdater
driverVersion
- String, the driver's versionpublic static void main(java.lang.String[] args)
Copyright © SAS Institute. All Rights Reserved.