public abstract class AbstractDriverUpdater extends java.lang.Object implements BrowserDriverUpdater
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
isBrowser32Bit
indicate if the firefox is 32 bits
|
protected java.lang.String |
vendor
The browser's vendor name, such as "chrome", "firefox", "edge" etc.
|
Constructor and Description |
---|
AbstractDriverUpdater() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
downloadBrowserDriver(java.lang.String driverVersion)
Download the matched browser-driver.
|
static BrowserDriverUpdater |
instance(java.lang.String browserName) |
boolean |
isBrowser32Bit() |
boolean |
update()
Update the browser's driver to the latest matched one.
Copy the original driver to "SeleniumPlus\extra\drivers\ Copy the latest driver to the folder "SeleniumPlus\extra\" to replace the original one. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBrowserVersion, getDriverDownloadURL, getDriverVersion, getMatchedDriverVerion
protected java.lang.String vendor
protected java.lang.Boolean isBrowser32Bit
public boolean isBrowser32Bit()
isBrowser32Bit
in interface BrowserDriverUpdater
public java.lang.String downloadBrowserDriver(java.lang.String driverVersion)
BrowserDriverUpdater
downloadBrowserDriver
in interface BrowserDriverUpdater
driverVersion
- String, the matched browser-driver's versionpublic boolean update()
BrowserDriverUpdater
update
in interface BrowserDriverUpdater
public static BrowserDriverUpdater instance(java.lang.String browserName)
Copyright © SAS Institute. All Rights Reserved.