Class SlowLoadableComponent<T extends LoadableComponent<T>>
- Type Parameters:
T- The type to be returned (normally the subclass' type)
public abstract class SlowLoadableComponent<T extends LoadableComponent<T>> extends LoadableComponent<T>A
LoadableComponentwhich might not have finished loading when load() returns. After a call to load(), the isLoaded() method should continue to fail until the component has fully loaded.
Constructors Constructor Description
SlowLoadableComponent(java.time.Clock clock, int timeOutInSeconds)
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
get()Ensure that the component is currently loaded.
isError()Check for well known error cases, which would mean that loading has finished, but an error condition was seen.
Methods inherited from class org.openqa.selenium.support.ui.LoadableComponent
public T get()Description copied from class:
LoadableComponentEnsure that the component is currently loaded.
LoadableComponent<T extends LoadableComponent<T>>
- The component.
protected void isError() throws java.lang.ErrorCheck for well known error cases, which would mean that loading has finished, but an error condition was seen. If an error has occurred throw an Error, possibly by using JUnit's Assert.assert* methods
java.lang.Error- When a well-known error condition has caused the load to fail
protected long sleepFor()