Class VersionDetector
- java.lang.Object
-
- io.github.bonigarcia.wdm.versions.VersionDetector
-
public class VersionDetector extends Object
Driver and browser version detector.- Since:
- 4.0.0
- Author:
- Boni Garcia
-
-
Constructor Summary
Constructors Constructor Description VersionDetector(Config config, HttpClient httpClient)
-
Method Summary
-
-
-
Constructor Detail
-
VersionDetector
public VersionDetector(Config config, HttpClient httpClient)
-
-
Method Detail
-
getValueFromProperties
public String getValueFromProperties(Properties properties, String key)
-
getDriverVersionFromRepository
public Optional<String> getDriverVersionFromRepository(Optional<String> driverVersion, URL driverUrl, Charset versionCharset, String driverName, String versionLabel, String latestLabel, Optional<String> optOsLabel)
-
getBrowserVersionFromTheShell
public Optional<String> getBrowserVersionFromTheShell(String browserName)
-
getBrowserVersionUsingProperties
protected Optional<String> getBrowserVersionUsingProperties(String browserName, Properties commandsProperties)
-
getCommandsList
protected List<String> getCommandsList(String browserName, Properties commandsProperties)
-
getBrowserVersionUsingCommand
protected Optional<String> getBrowserVersionUsingCommand(String command)
-
getProperties
protected Properties getProperties(String propertiesName, boolean online)
-
getVersionsInputStream
protected InputStream getVersionsInputStream(String propertiesName, boolean online) throws IOException
- Throws:
IOException
-
getLocalInputStream
protected InputStream getLocalInputStream(String propertiesName)
-
getOnlineInputStream
protected InputStream getOnlineInputStream(String propertiesName) throws IOException
- Throws:
IOException
-
isSnap
public boolean isSnap()
-
-