Package org.openqa.selenium.net
Class UrlChecker
- java.lang.Object
-
- org.openqa.selenium.net.UrlChecker
-
public class UrlChecker extends java.lang.Object
Polls a URL until a HTTP 200 response is received.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UrlChecker.TimeoutException
-
Constructor Summary
Constructors Constructor Description UrlChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
waitUntilAvailable(long timeout, java.util.concurrent.TimeUnit unit, java.net.URL... urls)
void
waitUntilUnavailable(long timeout, java.util.concurrent.TimeUnit unit, java.net.URL url)
-
-
-
Method Detail
-
waitUntilAvailable
public void waitUntilAvailable(long timeout, java.util.concurrent.TimeUnit unit, java.net.URL... urls) throws UrlChecker.TimeoutException
- Throws:
UrlChecker.TimeoutException
-
waitUntilUnavailable
public void waitUntilUnavailable(long timeout, java.util.concurrent.TimeUnit unit, java.net.URL url) throws UrlChecker.TimeoutException
- Throws:
UrlChecker.TimeoutException
-
-