public class FrameFinder extends WindowFinderTemplate<Frame>
Frames. This class cannot be used directly, please see
WindowFinder.| Modifier | Constructor and Description |
|---|---|
protected |
FrameFinder(Class<? extends Frame> frameType)
Creates a new
FrameFinder. |
protected |
FrameFinder(GenericTypeMatcher<? extends Frame> matcher)
Creates a new
FrameFinder. |
protected |
FrameFinder(String frameName)
Creates a new
FrameFinder. |
| Modifier and Type | Method and Description |
|---|---|
protected Frame |
cast(Component c)
Casts the given
Component to . |
FrameFixture |
using(Robot robot)
Finds a
by name or type. |
FrameFinder |
withTimeout(long timeout)
Sets the timeout for this finder.
|
FrameFinder |
withTimeout(long timeout,
TimeUnit unit)
Sets the timeout for this finder.
|
findComponentWithprotected FrameFinder(String frameName)
FrameFinder.frameName - the name of the Frame to look for.protected FrameFinder(GenericTypeMatcher<? extends Frame> matcher)
FrameFinder.matcher - specifies the search criteria to use when looking up a Frame.protected FrameFinder(Class<? extends Frame> frameType)
FrameFinder.frameType - the type of Frame to look for.public FrameFinder withTimeout(long timeout)
withTimeout in class WindowFinderTemplate<Frame>timeout - the number of milliseconds before stopping the search.public FrameFinder withTimeout(long timeout, TimeUnit unit)
withTimeout in class WindowFinderTemplate<Frame>timeout - the period of time the search should be performed.unit - the time unit for timeout.public FrameFixture using(Robot robot)
Frame by name or type.using in class WindowFinderTemplate<Frame>robot - contains the underlying finding to delegate the search to.FrameFixture managing the found Frame.WaitTimedOutError - if a Frame could not be found.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.