org.fest.swing.driver
Class FrameDriver
java.lang.Object
org.fest.swing.driver.ComponentDriver
org.fest.swing.driver.ContainerDriver
org.fest.swing.driver.WindowDriver
org.fest.swing.driver.FrameDriver
public class FrameDriver
- extends WindowDriver
Understands functional testing of Frame
s:
- user input simulation
- state verification
- property value query
This class is intended for internal use only. Please use the classes in the package
org.fest.swing.fixture
in your tests.
- Author:
- Alex Ruiz, Yvonne Wang
Methods inherited from class org.fest.swing.driver.ComponentDriver |
assertIsEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FrameDriver
public FrameDriver(Robot robot)
- Creates a new
FrameDriver
.
- Parameters:
robot
- the robot to use to simulate user input.
iconify
@RunsInEDT
public void iconify(Frame frame)
- Iconifies the given
Frame
.
- Parameters:
frame
- the given Frame
.
- Throws:
IllegalStateException
- if the Frame
is not enabled.
IllegalStateException
- if the Frame
is not showing on the screen.
deiconify
@RunsInEDT
public void deiconify(Frame frame)
- Deiconifies the given
Frame
.
- Parameters:
frame
- the given Frame
.
- Throws:
IllegalStateException
- if the Frame
is not enabled.
IllegalStateException
- if the Frame
is not showing on the screen.
normalize
@RunsInEDT
public void normalize(Frame frame)
- Normalizes the given
Frame
.
- Parameters:
frame
- the given Frame
.
- Throws:
IllegalStateException
- if the Frame
is not enabled.
IllegalStateException
- if the Frame
is not showing on the screen.
maximize
@RunsInEDT
public void maximize(Frame frame)
- Makes the
Frame
full size.
- Parameters:
frame
- the target Frame
.
- Throws:
IllegalStateException
- if the Frame
is not enabled.
IllegalStateException
- if the Frame
is not showing on the screen.
ActionFailedException
- if the operating system does not support maximizing frames.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.