Class UrlUtils
java.lang.Object
org.jboss.arquillian.drone.webdriver.utils.UrlUtils
A simple URL utility class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisLocalhost(URL url) Checks whether the givenURLis a localhost addressstatic booleanisReachable(URL url) Tries to open connection to the givenURLto check it is reachablestatic booleanTries to open connection to the default URL of Selenium Server (localhost:4444) to check whether Selenium Hub is started
-
Constructor Details
-
UrlUtils
public UrlUtils()
-
-
Method Details
-
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
Tries to open connection to the givenURLto check it is reachable -
isLocalhost
Checks whether the givenURLis a localhost address
-