public class FrameFinder extends WindowFinderTemplate<Frame>
Frame
s. 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 AWT or Swing
Component to Frame . |
FrameFixture |
using(Robot robot)
Finds a
Frame 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.
|
findComponentWith
protected FrameFinder(@Nullable String frameName)
FrameFinder
.frameName
- the name of the Frame
to look for.protected FrameFinder(@Nonnull GenericTypeMatcher<? extends Frame> matcher)
FrameFinder
.matcher
- specifies the search criteria to use when looking up a Frame
.protected FrameFinder(@Nonnull Class<? extends Frame> frameType)
FrameFinder
.frameType
- the type of Frame
to look for.@Nonnull public FrameFinder withTimeout(@Nonnegative long timeout)
Frame
to search should be found within the given time period.withTimeout
in class WindowFinderTemplate<Frame>
timeout
- the number of milliseconds before stopping the search.@Nonnull public FrameFinder withTimeout(@Nonnegative long timeout, @Nonnull TimeUnit unit)
Frame
to search should be found within the given time period.withTimeout
in class WindowFinderTemplate<Frame>
timeout
- the period of time the search should be performed.unit
- the time unit for timeout
.@Nonnull public FrameFixture using(@Nonnull 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 © 2014–2019 AssertJ. All rights reserved.