Class EnvironmentUtils


  • public class EnvironmentUtils
    extends Object
    • Constructor Detail

      • EnvironmentUtils

        public EnvironmentUtils()
    • Method Detail

      • isUnsupportedBrowserEnvironment

        public boolean isUnsupportedBrowserEnvironment()
        Checks the available browser to see if it is an unsupported one.
        Returns:
        'true' if in a unSupported browser environment 'false' otherwise.
      • getUserAgent

        protected String getUserAgent()
        Ask for user Agent of the available browser.
        Returns:
        a string that contains the user agent of the browser.
      • isWebkitUnavailable

        public boolean isWebkitUnavailable()
        Checks the existence of the webkit library on ubuntu.
        Returns:
        'true' if the webkit library is not present in ubuntu, 'false' otherwise.
      • getWebkitPath

        protected String getWebkitPath()
        Ask for the path in the system for the webkit library.
        Returns:
        a string that contains the path or 'null' if not found.
      • getOsName

        protected String getOsName()
      • getSupportedVersion

        protected int getSupportedVersion​(String property)
        Gets the supported version of the required Property.
        Parameters:
        property - a string with the required property.
        Returns:
        the value of the requiredProperty.
      • isBrowserEnvironmentCheckDisabled

        public boolean isBrowserEnvironmentCheckDisabled()
        Ask if the browsing environment checks are disabled.
        Returns:
        'true' if disabled 'false' otherwise.
      • getBrowserName

        public String getBrowserName()
        Ask for the browser name.
        Returns:
        a String that contains the browser name.