public class VersionDetector extends Object
| Constructor and Description |
|---|
VersionDetector(Config config,
HttpClient httpClient) |
public VersionDetector(Config config, HttpClient httpClient)
public String getValueFromProperties(Properties properties, String key)
public Optional<String> getDriverVersionFromRepository(Optional<String> driverVersion, URL driverUrl, Charset versionCharset, String driverName, String versionLabel, String latestLabel, Optional<String> optOsLabel)
public Optional<String> getBrowserVersionFromTheShell(String browserName)
protected Optional<String> getBrowserVersionUsingProperties(String browserName, Properties commandsProperties)
protected List<String> getCommandsList(String browserName, Properties commandsProperties)
protected Optional<String> getBrowserVersionUsingCommand(String command)
protected Properties getProperties(String propertiesName, boolean online)
protected InputStream getVersionsInputStream(String propertiesName, boolean online) throws IOException
IOExceptionprotected InputStream getLocalInputStream(String propertiesName)
protected InputStream getOnlineInputStream(String propertiesName) throws IOException
IOExceptionpublic boolean isSnap()
Copyright © 2022. All rights reserved.