@InternalApi public class FrameDriver extends WindowDriver
Supports functional testing of AWT or Swing Frames.
Note: This class is intended for internal use only. Please use the classes in the package
org.assertj.swing.fixture in your tests.
robot| Constructor and Description |
|---|
FrameDriver(Robot robot)
Creates a new
FrameDriver. |
| Modifier and Type | Method and Description |
|---|---|
void |
deiconify(Frame frame)
Deiconifies the given AWT or Swing
Frame. |
void |
iconify(Frame frame)
Iconifies the given AWT or Swing
Frame. |
void |
maximize(Frame frame)
Makes the AWT or Swing
Frame full size. |
void |
normalize(Frame frame)
Normalizes the given AWT or Swing
Frame. |
close, moveTo, moveToBack, moveToFront, resizeHeightTo, resizeTo, resizeWidthTo, show, showdoResizeHeight, doResizeWidth, isResizable, move, resizebackgroundOf, checkInEdtEnabledAndShowing, click, click, click, click, click, doubleClick, drag, dragOver, drop, focus, focusAndWaitForFocusGain, fontOf, foregroundOf, invokePopupMenu, invokePopupMenu, moveMouseIgnoringAnyError, moveMouseIgnoringAnyError, performAccessibleActionOf, pressAndReleaseKey, pressAndReleaseKey, pressAndReleaseKeys, pressKey, propertyName, releaseKey, requireDisabled, requireEnabled, requireEnabled, requireFocused, requireNotVisible, requireSize, requireVisible, rightClick, settings, waitForShowingpublic FrameDriver(@Nonnull Robot robot)
FrameDriver.robot - the robot to use to simulate user input.@RunsInEDT public void iconify(@Nonnull Frame frame)
Frame.frame - the given Frame.IllegalStateException - if the Frame is not enabled.IllegalStateException - if the Frame is not showing on the screen.@RunsInEDT public void deiconify(@Nonnull Frame frame)
Frame.frame - the given Frame.IllegalStateException - if the Frame is not enabled.IllegalStateException - if the Frame is not showing on the screen.@RunsInEDT public void normalize(@Nonnull Frame frame)
Frame.frame - the given Frame.IllegalStateException - if the Frame is not enabled.IllegalStateException - if the Frame is not showing on the screen.@RunsInEDT public void maximize(@Nonnull Frame frame)
Frame full size.frame - the target Frame.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 © 2014 AssertJ. All rights reserved.