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 boolean
checkFileAndFolder
(File folder, File file) protected File
findFileLocation
(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 InputStream
getLocalInputStream
(String propertiesName) static String
getMajorVersion
(String version) protected InputStream
getOnlineInputStream
(String propertiesName) protected Properties
getProperties
(String propertiesName, boolean online) getValueFromProperties
(Properties properties, String key) protected InputStream
getVersionsInputStream
(String propertiesName, boolean online) getWdmVersion
(Class<?> clazz) static boolean
boolean
isSnap()
static String
parseVersion
(String version) readUrlContent
(String url, String driverName, Charset versionCharset) protected String
runCommandInShell
(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
-