public class JMenuItemDriver extends JComponentDriver
JMenuItem
s:
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, scrollToVisible
move, resize, resizeHeight, resizeWidth
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
public 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-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.