Class UrlUtils


  • public class UrlUtils
    extends Object
    A simple URL utility class
    • Constructor Detail

      • UrlUtils

        public UrlUtils()
    • Method Detail

      • isSeleniumHubRunningOnDefaultUrl

        public static boolean isSeleniumHubRunningOnDefaultUrl()
        Tries to open connection to the default URL of Selenium Server (localhost:4444) to check whether Selenium Hub is started
      • isReachable

        public static boolean isReachable​(URL url)
        Tries to open connection to the given URL to check it is reachable
      • isLocalhost

        public static boolean isLocalhost​(URL url)
        Checks whether the given URL is a localhost address