T
- the type of window this finder can search.public abstract class WindowFinderTemplate<T extends Window> extends ComponentFinderTemplate<T>
Window
finders.Modifier | Constructor and Description |
---|---|
protected |
WindowFinderTemplate(Class<? extends T> windowType)
Creates a new
WindowFinderTemplate . |
protected |
WindowFinderTemplate(GenericTypeMatcher<? extends T> matcher)
Creates a new
WindowFinderTemplate . |
protected |
WindowFinderTemplate(String windowName,
Class<? extends T> windowType)
Creates a new
WindowFinderTemplate . |
Modifier and Type | Method and Description |
---|---|
abstract WindowFixture<T> |
using(Robot robot)
Finds a window by name or type using the given robot.
|
protected WindowFinderTemplate<T> |
withTimeout(long timeout)
Sets the timeout for this finder.
|
protected WindowFinderTemplate<T> |
withTimeout(long timeout,
TimeUnit unit)
Sets the timeout for this finder.
|
cast, findComponentWith
protected WindowFinderTemplate(String windowName, Class<? extends T> windowType)
WindowFinderTemplate
.windowName
- the name of the Window
to find.windowType
- the type of the Window
to find.protected WindowFinderTemplate(GenericTypeMatcher<? extends T> matcher)
WindowFinderTemplate
.matcher
- specifies the search criteria to use when looking up a Window
.protected WindowFinderTemplate(Class<? extends T> windowType)
WindowFinderTemplate
.windowType
- the type of the Window
to find.protected WindowFinderTemplate<T> withTimeout(long timeout)
Window
to find should be found within the given time
period.withTimeout
in class ComponentFinderTemplate<T extends Window>
timeout
- the number of milliseconds before stopping the search.IllegalArgumentException
- if the timeout is a negative number.protected WindowFinderTemplate<T> withTimeout(long timeout, TimeUnit unit)
Window
to find should be found within the given time
period.withTimeout
in class ComponentFinderTemplate<T extends Window>
timeout
- the period of time the search should be performed.unit
- the time unit for timeout
.NullPointerException
- if the time unit is null
.IllegalArgumentException
- if the timeout is a negative number.public abstract WindowFixture<T> using(Robot robot)
using
in class ComponentFinderTemplate<T extends Window>
robot
- contains the underlying finding to delegate the search to.WaitTimedOutError
- if a window with the given name or of the given type could not
be found.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.