org.openqa.selenium.net
Class UrlChecker

java.lang.Object
  extended by org.openqa.selenium.net.UrlChecker

public class UrlChecker
extends Object

Polls a URL until a HTTP 200 response is received.


Nested Class Summary
static class UrlChecker.TimeoutException
           
 
Constructor Summary
UrlChecker()
           
 
Method Summary
 void waitUntilAvailable(long timeout, TimeUnit unit, URL... urls)
           
 void waitUntilUnavailable(long timeout, TimeUnit unit, URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlChecker

public UrlChecker()
Method Detail

waitUntilAvailable

public void waitUntilAvailable(long timeout,
                               TimeUnit unit,
                               URL... urls)
                        throws UrlChecker.TimeoutException
Throws:
UrlChecker.TimeoutException

waitUntilUnavailable

public void waitUntilUnavailable(long timeout,
                                 TimeUnit unit,
                                 URL url)
                          throws UrlChecker.TimeoutException
Throws:
UrlChecker.TimeoutException


Copyright © 2013. All Rights Reserved.