Class VersionDetector
java.lang.Object
io.github.bonigarcia.wdm.versions.VersionDetector
Driver and browser version detector.
- Since:
- 4.0.0
- Author:
- Boni Garcia
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckFileAndFolder(File folder, File file) protected FilefindFileLocation(String filename) getBrowserPath(String browserName) getBrowserVersionFromTheShell(String browserName) getBrowserVersionUsingCommand(String command) getBrowserVersionUsingProperties(String browserName, Properties commandsProperties) getCommandsList(String browserName, Properties commandsProperties) getDriverVersionFromRepository(Optional<String> driverVersion, URL driverUrl, Charset versionCharset, String driverName, String versionLabel, String latestLabel, Optional<String> optOsLabel) protected InputStreamgetLocalInputStream(String propertiesName) static StringgetMajorVersion(String version) protected InputStreamgetOnlineInputStream(String propertiesName) protected PropertiesgetProperties(String propertiesName, boolean online) getValueFromProperties(Properties properties, String key) protected InputStreamgetVersionsInputStream(String propertiesName, boolean online) getWdmVersion(Class<?> clazz) static booleanbooleanisSnap()readUrlContent(String url, String driverName, Charset versionCharset)
-
Constructor Details
-
VersionDetector
-
-
Method Details
-
getValueFromProperties
-
getDriverVersionFromRepository
-
readUrlContent
-
getBrowserPath
-
getBrowserVersionFromTheShell
-
getBrowserVersionUsingProperties
protected Optional<String> getBrowserVersionUsingProperties(String browserName, Properties commandsProperties) -
getCommandsList
-
getBrowserVersionUsingCommand
-
getProperties
-
getVersionsInputStream
protected InputStream getVersionsInputStream(String propertiesName, boolean online) throws IOException - Throws:
IOException
-
getLocalInputStream
-
getOnlineInputStream
- Throws:
IOException
-
getMajorVersion
-
isCfT
-
findFileLocation
-
checkFileAndFolder
-
isSnap
public boolean isSnap() -
getWdmVersion
-