クラス WebDriverInstaller
java.lang.Object
one.cafebabe.webdriverinstaller.WebDriverInstaller
web driver
-
フィールドの概要
フィールド修飾子とタイプフィールド説明protected static final Stringenvironment variable to specify where to store Chrome Driverprotected static final Stringsystem property to specify where to store Chrome Driverprotected static final Stringenvironment variable where to store gecko driverprotected static final Stringsystem property where to store gecko driver -
メソッドの概要
修飾子とタイプメソッド説明Checks if suitable version of ChromeDriver applicable to the version of installed Google Chrome at the path specified by CHROME_DRIVER_HOME environment variable or $HOME/chromedriver If ChromeDriver is not found, attempts to download it from https://chromedriver.storage.googleapis.com/ System Property "webdriver.chrome.driver" will be also set.Checks if suitable version of geckodriver applicable to the version of installed Firefox at the path specified by GECKO_DRIVER_HOME environment variable, or geckodriver.home system property, or $HOME/geckodriver If geckodriver is not found, attempts to download it from mozilla geckodriver Releases System Property "webdriver.gecko.driver" will be also set.protected StringgetAppPath(String name) check app pathprotected StringgetAppVersion(String appPath) check app versionReturns version string of installed app.protected booleanisWin()check if the running OS is Windows
-
フィールド詳細
-
CHROME_DRIVER_ENV_NAME
environment variable to specify where to store Chrome Driver- 関連項目:
-
CHROME_DRIVER_PROPERTY_NAME
system property to specify where to store Chrome Driver- 関連項目:
-
GECKO_DRIVER_ENV_NAME
environment variable where to store gecko driver- 関連項目:
-
GECKO_DRIVER_PROPERTY_NAME
system property where to store gecko driver- 関連項目:
-
-
メソッドの詳細
-
ensureChromeDriverInstalled
Checks if suitable version of ChromeDriver applicable to the version of installed Google Chrome at the path specified by CHROME_DRIVER_HOME environment variable or $HOME/chromedriver If ChromeDriver is not found, attempts to download it from https://chromedriver.storage.googleapis.com/ System Property "webdriver.chrome.driver" will be also set.- 戻り値:
- absolute path to installed chromedriver
-
ensureGeckoDriverInstalled
Checks if suitable version of geckodriver applicable to the version of installed Firefox at the path specified by GECKO_DRIVER_HOME environment variable, or geckodriver.home system property, or $HOME/geckodriver If geckodriver is not found, attempts to download it from mozilla geckodriver Releases System Property "webdriver.gecko.driver" will be also set.- 戻り値:
- absolute path to installed geckodriver
-
getInstalledAppVersion
Returns version string of installed app.- 戻り値:
- version string of installed app
-
isWin
protected boolean isWin()check if the running OS is Windows- 戻り値:
- true is the running OS is Windows
-
getAppPath
check app path- パラメータ:
name- command to search- 戻り値:
- path
- 例外:
IOException- IOExceptionInterruptedException- InterruptedException
-
getAppVersion
check app version- パラメータ:
appPath- app path to check- 戻り値:
- version
- 例外:
IOException- IOExceptionInterruptedException- InterruptedException
-