Package org.netbeans.jemmy.operators
Operators package
Contains so called "operators".Operator is a test-side representation for a component. Each particular operator class provides all the functionality to work with one component type. For example
JButtonOperator covers javax.swing.JButton.Operators inheritance tree exactly matches component types inheritance:
AbstractButton extending JComponent means that
AbstractBittonOperator extends JComponentOperator.Every operator provides, basicly, all the methods to reproduce user actions which can be performed on a component type covered by operator.
Every operator also provides mapping functionality: API to invoke component method during the event queue. For example,
AbstractButtonOperator has
getText() method which simply invokes AbstractButton.getText()
through the queue.- Since:
- 23 Feb 2002
-
Interface Summary Interface Description JListOperator.ListItemChooser Iterface to choose list item.JProgressBarOperator.ValueChooser Deprecated. Use waitState(ComponentChooser) instead.JScrollBarOperator.ScrollChecker Interface can be used to define some kind of complicated scrolling rules.JTabbedPaneOperator.TabPageChooser Specifies criteria for a tab page searching.JTableOperator.TableCellChooser Iterface to choose table cell.JTextComponentOperator.TextChooser Interface defining additional text cearch criteria.JTreeOperator.TreePathChooser Specifies criteria for path searching.JTreeOperator.TreeRowChooser Iterface to choose tree row.Operator.ComponentVisualizer Interface used to make component visible & ready to to make operations with.Operator.PathParser Used for parsing of path-like strings.Operator.StringComparator Interface to compare string resources like labels, button text, ... -
Class Summary Class Description AbstractButtonOperator
Timeouts used:
AbstractButtonOperator.PushButtonTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
ComponentOperator.WaitStateTimeout - time to wait for text
.AbstractButtonOperator.AbstractButtonByLabelFinder Allows to find component by text.AbstractButtonOperator.AbstractButtonFinder Checks component type.ButtonOperator
Timeouts used:
ButtonOperator.PushButtonTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.ButtonOperator.ButtonByLabelFinder Allows to find component by label.ButtonOperator.ButtonFinder Checks component type.CheckboxOperator
Timeouts used:
ButtonOperator.PushButtonTimeout - time between checkbox pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait checkbox displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait checkbox enabled
.CheckboxOperator.CheckboxByLabelFinder Allows to find component by label.CheckboxOperator.CheckboxFinder Checks component type.ChoiceOperator
Timeouts used:
ButtonOperator.PushButtonTimeout - time between choice pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait choice displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait choice enabled
.ChoiceOperator.ChoiceBySelectedItemFinder Allows to find component by label.ChoiceOperator.ChoiceFinder Checks component type.ComponentOperator Root class for all component operators.ContainerOperator<T extends java.awt.Container>
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait container displayed
.ContainerOperator.ContainerFinder Checks component type.DialogOperator
Timeouts used:
DialogWaiter.WaitDialogTimeout - time to wait dialog displayed
DialogWaiter.AfterDialogTimeout - time to sleep after dialog has been dispayed
ComponentOperator.WaitStateTimeout - time to wait for title
.DialogOperator.DialogByTitleFinder Allows to find component by title.DialogOperator.DialogFinder Checks component type.FrameOperator
Timeouts used:
FrameWaiter.WaitFrameTimeout - time to wait frame displayed
FrameWaiter.AfterFrameTimeout - time to sleep after frame has been dispayed
ComponentOperator.WaitStateTimeout - time to wait for text
.FrameOperator.FrameByTitleFinder Allows to find component by title.FrameOperator.FrameFinder Checks component type.JButtonOperator
Timeouts used:
AbstractButtonOperator.PushButtonTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JButtonOperator.JButtonFinder Checks component type.JCheckBoxMenuItemOperator
Timeouts used:
JMenuItemOperator.PushMenuTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JCheckBoxMenuItemOperator.JCheckBoxMenuItemByLabelFinder Allows to find component by text.JCheckBoxMenuItemOperator.JCheckBoxMenuItemFinder Checks component type.JCheckBoxOperator
Timeouts used:
AbstractButtonOperator.PushButtonTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JCheckBoxOperator.JCheckBoxFinder Checks component type.JColorChooserOperator Class provides methods to cover main JColorChooser component functionality.JColorChooserOperator.JColorChooserFinder Checks component type.JComboBoxOperator
Timeouts used:
JComboBoxOperator.BeforeSelectingTimeout - time to sleep after list opened and before item selected
JComboBoxOperator.WaitListTimeout - time to wait list opened
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait component enabled
ComponentOperator.WaitStateTimeout - time to wait for item to be selected
AbstractButtonOperator.PushButtonTimeout - time between combo button pressing and releasing
ComponentOperator.MouseClickTimeout - time between mouse pressing and releasing during item selecting
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
.JComboBoxOperator.JComboBoxByItemFinder Allows to find component by an item.JComboBoxOperator.JComboBoxFinder Checks component type.JComponentOperator
Timeouts used:
JComponentOperator.WaitToolTipTimeout - time to wait tool tip displayed
JComponentOperator.ShowToolTipTimeout - time to show tool tip
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.JComponentOperator.JComponentByTipFinder Allows to find component by tooltip.JComponentOperator.JComponentFinder Checks component type.JDialogOperator
Timeouts used:
DialogWaiter.WaitDialogTimeout - time to wait dialog displayed
DialogWaiter.AfterDialogTimeout - time to sleep after dialog has been dispayed
.JDialogOperator.JDialogFinder Checks component type.JEditorPaneOperator Class provides basic functions to operate with JEditorPane (selection, typing, deleting)
Timeouts used:
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to change caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitFocusTimeout - time to wait component focus
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JEditorPaneOperator.JEditorPaneFinder Checks component type.JFileChooserOperator Class provides methods to cover main JFileChooser component functionality.JFileChooserOperator.JFileChooserFinder Checks component type.JFileChooserOperator.JFileChooserJDialogFinder Allows to find a dialog containing JFileChooser.JFrameOperator
Timeouts used:
FrameWaiter.WaitFrameTimeout - time to wait frame displayed
FrameWaiter.AfterFrameTimeout - time to sleep after frame has been dispayed
.JFrameOperator.JFrameFinder Checks component type.JInternalFrameOperator Class provides necessary functionality to operate with javax.swing.JInternalFrame component.JInternalFrameOperator.JDesktopIconOperator Class to operate with javax.swing.JInternalFrame.JDesktopIconOperator component.JInternalFrameOperator.JInternalFrameByTitleFinder Allows to find component by title.JInternalFrameOperator.JInternalFrameFinder Checks component type.JLabelOperator
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitStateTimeout - time to wait for text
.JLabelOperator.JLabelByLabelFinder Allows to find component by text.JLabelOperator.JLabelFinder Checks component type.JListOperator
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitStateTimeout - time to wait for item, and for item to be selected
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JListOperator.JListByItemFinder Allows to find component by an item.JListOperator.JListFinder Checks component type.JMenuBarOperator
Timeouts used:
JMenuOperator.WaitBeforePopupTimeout - time to sleep before popup expanding
JMenuOperator.WaitPopupTimeout - time to wait popup displayed
ComponentOperator.WaitComponentTimeout - time to wait button displayed
.JMenuBarOperator.JMenuBarFinder Checks component type.JMenuItemOperator
Timeouts used:
JMenuItemOperator.PushMenuTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JMenuItemOperator.JMenuItemByLabelFinder Allows to find component by text.JMenuItemOperator.JMenuItemFinder Checks component type.JMenuOperator
Timeouts used:
JMenuOperator.WaitBeforePopupTimeout - time to sleep before popup expanding
JMenuOperator.WaitPopupTimeout - time to wait popup displayed
JMenuOperator.PushMenuTimeout - time for the whole menu operation
JMenuItemOperator.PushMenuTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JMenuOperator.JMenuByLabelFinder Allows to find component by text.JMenuOperator.JMenuFinder Checks component type.JPasswordFieldOperator
Timeouts used:
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitFocusTimeout - time to wait component focus
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JPasswordFieldOperator.JPasswordFieldFinder Checks component type.JPopupMenuOperator
Timeouts used:
JMenuOperator.WaitBeforePopupTimeout - time to sleep before popup expanding
JMenuOperator.WaitPopupTimeout - time to wait popup displayed
ComponentOperator.WaitComponentTimeout - time to wait button displayed
WindowWaiter.WaitWindowTimeout - time to wait popup window displayed
WindowWaiter.AfterWindowTimeout - time to sleep after popup window has been dispayed
.JPopupMenuOperator.JPopupMenuFinder Checks component type.JPopupMenuOperator.JPopupWindowFinder Allwos to find a window containing JPopupMenu.JProgressBarOperator Operator is supposed to be used to operate with an instance of javax.swing.JProgressBar class.JProgressBarOperator.JProgressBarFinder Checks component type.JRadioButtonMenuItemOperator
Timeouts used:
JMenuItemOperator.PushMenuTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JRadioButtonMenuItemOperator.JRadioButtonMenuItemByLabelFinder Allows to find component by text.JRadioButtonMenuItemOperator.JRadioButtonMenuItemFinder Checks component type.JRadioButtonOperator
Timeouts used:
AbstractButtonOperator.PushButtonTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JRadioButtonOperator.JRadioButtonFinder Checks component type.JScrollBarOperator Operator is supposed to be used to operate with an instance of javax.swing.JScrollBar class.JScrollBarOperator.JScrollBarFinder Checks component type.JScrollPaneOperator
Timeouts used:
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.JScrollPaneOperator.JScrollPaneFinder Checks component type.JSliderOperator Coversjavax.swing.JSlidercomponent.JSliderOperator.JSliderFinder Checks component type.JSpinnerOperator Provides methods to work withjavax.swing.JSpinnercomponentJSpinnerOperator.DateScrollAdjuster AScrollAdjusterto be used forJSpinnercomponent havingSpinnerDateModelmodel.JSpinnerOperator.ExactScrollAdjuster Class for a scrolling of a spinner having unknown model type.JSpinnerOperator.JSpinnerByTextFinder Allows to find component by text.JSpinnerOperator.JSpinnerFinder Checks component type.JSpinnerOperator.ListScrollAdjuster AScrollAdjusterto be used forJSpinnercomponent havingSpinnerListModelmodel.JSpinnerOperator.NumberScrollAdjuster AScrollAdjusterto be used forJSpinnercomponent havingSpinnerNumberModelmodel.JSpinnerOperator.ObjectScrollAdjuster Abstract class for a scrolling of a spinner having unknown model type.JSpinnerOperator.ToStringScrollAdjuster Class for a scrolling of a spinner having unknown model type.JSplitPaneOperator
Timeouts used:
JSplitPaneOperator.ScrollClickTimeout - time for simple scroll click
JSplitPaneOperator.BetweenClickTimeout - time to sleep between scroll clicks
JSplitPaneOperator.WholeScrollTimeout - time for the whole scrolling
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.JSplitPaneOperator.JSplitPaneFinder Checks component type.JTabbedPaneOperator
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.JTabbedPaneOperator.JTabbedPaneByItemFinder Allows to find component by page title.JTabbedPaneOperator.JTabbedPaneFinder Checks component type.JTableHeaderOperator ComponentOperator.BeforeDragTimeout - time to sleep before column moving
ComponentOperator.AfterDragTimeout - time to sleep after column moving
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.JTableHeaderOperator.JTableHeaderFinder Checks component type.JTableOperator
Timeouts used:
JTableOperator.WaitEditingTimeout - time to wait cell editing
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitStateTimeout - time to wait for cell contents
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JTableOperator.JTableByCellFinder Allows to find component by cell text.JTableOperator.JTableFinder Checks component type.JTextAreaOperator Class provides basic functions to operate with JTextArea (selection, typing, deleting)
Timeouts used:
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitFocusTimeout - time to wait component focus
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JTextAreaOperator.JTextAreaFinder Checks component type.JTextComponentOperator Class provides basic functions to operate with JTextComponent (selection, typing, deleting)
Timeouts used:
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitFocusTimeout - time to wait component focus
ComponentOperator.WaitStateTimeout - time to wait for text
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JTextComponentOperator.JTextComponentByTextFinder Allows to find component by text.JTextComponentOperator.JTextComponentFinder Checks component type.JTextFieldOperator
Timeouts used:
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitFocusTimeout - time to wait component focus
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JTextFieldOperator.JTextFieldFinder Checks component type.JTextPaneOperator
Timeouts used:
JTextComponentOperator.PushKeyTimeout - time between key pressing and releasing during text typing
JTextComponentOperator.BetweenKeysTimeout - time to sleep between two chars typing
JTextComponentOperator.ChangeCaretPositionTimeout - maximum time to chenge caret position
JTextComponentOperator.TypeTextTimeout - maximum time to type text
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitFocusTimeout - time to wait component focus
JScrollBarOperator.OneScrollClickTimeout - time for one scroll click
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JTextPaneOperator.JTextPaneFinder Checks component type.JToggleButtonOperator
Timeouts used:
AbstractButtonOperator.PushButtonTimeout - time between button pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait button displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait button enabled
.JToggleButtonOperator.JToggleButtonFinder Checks component type.JTreeOperator
Timeouts used:
JTreeOperator.WaitNodeExpandedTimeout - time to wait node expanded
JTreeOperator.WaitNodeCollapsedTimeout - time to wait node collapsed
JTreeOperator.WaitAfterNodeExpandedTimeout - time to to sleep after node expanded
JTreeOperator.WaitNextNodeTimeout - time to wait next node displayed
JTreeOperator.WaitNodeVisibleTimeout - time to wait node visible
JTreeOperator.BeforeEditTimeout - time to sleep before edit click
JTreeOperator.WaitEditingTimeout - time to wait node editing
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitStateTimeout - time to wait for path to be expanded, collapsed, selected, time to wait for a text in a row
WindowWaiter.WaitWindowTimeout - time to wait popup window displayed
JScrollBarOperator.WholeScrollTimeout - time for the whole scrolling
.JTreeOperator.JTreeByItemFinder Allows to find component by node text.JTreeOperator.JTreeFinder Checks component type.LabelOperator
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.LabelOperator.LabelByLabelFinder Allows to find component by LabelByLabelFinder.LabelOperator.LabelFinder Checks component type.ListOperator
Timeouts used:
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait component enabled
.ListOperator.ListByItemFinder Allows to find component by item text.ListOperator.ListFinder Checks component type.Operator Keeps all environment and low-level methods.Operator.DefaultPathParser Used for parsing of path-like strings where path components are separated by a string-separator: "drive|directory|subdirectory|file".Operator.DefaultStringComparator Default StringComparator implementation.Operator.Finder Allows to bind a compponent by a component type.ScrollbarOperator
Timeouts used:
ScrollbarOperator.WholeScrollTimeout - time for one scroll click
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.ScrollbarOperator.ScrollbarFinder Checks component type.ScrollPaneOperator
Timeouts used:
ScrollbarOperator.WholeScrollTimeout - time for one scroll click
ComponentOperator.WaitComponentTimeout - time to wait component displayed
.ScrollPaneOperator.ScrollPaneFinder Checks component type.TextAreaOperator This operator type covers java.awt.textArea component.TextAreaOperator.TextAreaByTextFinder Allows to find component by text.TextAreaOperator.TextAreaFinder Checks component type.TextComponentOperator This operator type covers java.awt.TextArea component.TextComponentOperator.TextComponentByTextFinder Allows to find component by text.TextComponentOperator.TextComponentFinder Checks component type.TextFieldOperator This operator type covers java.awt.TextField component.TextFieldOperator.TextFieldByTextFinder Allows to find component by text.TextFieldOperator.TextFieldFinder Checks component type.WindowOperator
Timeouts used:
WindowWaiter.WaitWindowTimeout - time to wait window displayed
WindowWaiter.AfterWindowTimeout - time to sleep after window has been dispayed
. -
Exception Summary Exception Description JSpinnerOperator.SpinnerModelException Exception is thown whenever spinner model is threated wrong.