public class JMenuItemDriver extends JComponentDriver
JMenuItems:
org.fest.swing.fixture in your tests.robot| Constructor and Description |
|---|
JMenuItemDriver(Robot robot)
Creates a new
JMenuItemDriver. |
| Modifier and Type | Method and Description |
|---|---|
void |
click(JMenuItem menuItem)
Finds and selects the given
. |
clientProperty, invokeAction, isVisible, isVisible, requireToolTip, requireToolTip, scrollToVisiblemove, resize, resizeHeight, resizeWidthassertIsEnabledAndShowing, 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, waitForShowingpublic JMenuItemDriver(Robot robot)
JMenuItemDriver.robot - the robot to use to simulate user input.@RunsInEDT public void click(JMenuItem menuItem)
JMenuItem.menuItem - the JMenuItem to select.IllegalStateException - if the menu to select is disabled.IllegalStateException - if the menu to select is not showing on the screen.ActionFailedException - if the menu has a pop-up and it fails to show up.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.