public class EnvironmentUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MAC_BROWSER |
static String |
UBUNTU_BROWSER |
static String |
WINDOWS_BROWSER |
Constructor and Description |
---|
EnvironmentUtils() |
Modifier and Type | Method and Description |
---|---|
protected Process |
ExecuteCommand(String command) |
String |
getBrowserName()
Ask for the browser name.
|
protected BufferedReader |
getBufferedReaderFromProcess(Process p) |
static EnvironmentUtils |
getInstance() |
protected String |
getOsName() |
protected int |
getSupportedVersion(String property)
Gets the supported version of the required Property.
|
protected String |
getUserAgent()
Ask for user Agent of the available browser.
|
protected String |
getWebkitPath()
Ask for the path in the system for the webkit library.
|
boolean |
isBrowserEnvironmentCheckDisabled()
Ask if the browsing environment checks are disabled.
|
boolean |
isUnsupportedBrowserEnvironment()
Checks the available browser to see if it is an unsupported one.
|
boolean |
isWebkitUnavailable()
Checks the existence of the webkit library on ubuntu 16 or ubuntu 14 .
|
public static final String UBUNTU_BROWSER
public static final String MAC_BROWSER
public static final String WINDOWS_BROWSER
public static EnvironmentUtils getInstance()
public boolean isUnsupportedBrowserEnvironment()
protected String getUserAgent()
public boolean isWebkitUnavailable()
protected String getWebkitPath()
protected String getOsName()
protected int getSupportedVersion(String property)
property
- a string with the required property.public boolean isBrowserEnvironmentCheckDisabled()
protected Process ExecuteCommand(String command) throws IOException
IOException
protected BufferedReader getBufferedReaderFromProcess(Process p)
public String getBrowserName()
Copyright © 2019 Hitachi Vantara. All rights reserved.