Class QueueJMenuDriver

  • All Implemented Interfaces:
    LightDriver, MenuDriver

    public class QueueJMenuDriver
    extends LightSupportiveDriver
    implements MenuDriver
    100% stable menu driver. Tries to do next steps during one action executed through EventQueue:
    find showing window containing popup
    find showing popup
    find showing menuitem
    enter mouse into it
    Repeats this action as many times as "JMenuOperator.WaitPopupTimeout" timeout allows.
    Author:
    Alexandre Iline (alexandre.iline@sun.com)
    • Constructor Detail

      • QueueJMenuDriver

        public QueueJMenuDriver()
    • Method Detail

      • pushMenu

        public Object pushMenu​(ComponentOperator oper,
                               PathChooser chooser)
        Description copied from interface: MenuDriver
        Pushes menu.
        Specified by:
        pushMenu in interface MenuDriver
        Parameters:
        oper - Menu operator.
        chooser - Object defining menupath.
        Returns:
        a result of menu pushing. It could be last pushed menuitem or anything else.