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) 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 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) boolean
isSnap()
-
Constructor Details
-
VersionDetector
-
-
Method Details
-
getDriverVersionFromProperties
-
getValueFromProperties
-
getDriverVersionFromRepository
-
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
-
findFileLocation
-
checkFileAndFolder
-
isSnap
public boolean isSnap() -
getWdmVersion
-