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, String browserBinary) getBrowserVersionUsingCommand(String command) getBrowserVersionUsingProperties(String browserName, String browserBinary, 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()static StringparseVersion(String version) readUrlContent(String url, String driverName, Charset versionCharset) protected StringrunCommandInShell(String command)
-
Constructor Details
-
VersionDetector
-
-
Method Details
-
getValueFromProperties
-
getDriverVersionFromRepository
-
readUrlContent
-
getBrowserPath
-
getBrowserVersionFromTheShell
-
getBrowserVersionUsingProperties
protected Optional<String> getBrowserVersionUsingProperties(String browserName, String browserBinary, Properties commandsProperties) -
getCommandsList
-
runCommandInShell
-
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() -
parseVersion
-
getWdmVersion
-