Class AWTScrollDriver

    • Constructor Detail

      • AWTScrollDriver

        public AWTScrollDriver​(String[] supported)
        Constructs a ChoiceDriver.
        Parameters:
        supported - an array of supported class names
    • Method Detail

      • startPushAndWait

        protected void startPushAndWait​(ComponentOperator oper,
                                        int direction,
                                        int orientation)
        Description copied from class: AbstractScrollDriver
        Presses something like a scroll button.
        Specified by:
        startPushAndWait in class AbstractScrollDriver
        Parameters:
        oper - an operator.
        direction - - one of the ScrollAdjister.INCREASE_SCROLL_DIRECTION, ScrollAdjister.DECREASE_SCROLL_DIRECTION, ScrollAdjister.DO_NOT_TOUCH_SCROLL_DIRECTION values.
        orientation - one of the Adjustable.HORIZONTAL or Adjustable.VERTICAL values.
      • stopPushAndWait

        protected void stopPushAndWait​(ComponentOperator oper,
                                       int direction,
                                       int orientation)
        Description copied from class: AbstractScrollDriver
        Releases something like a scroll button.
        Specified by:
        stopPushAndWait in class AbstractScrollDriver
        Parameters:
        oper - an operator.
        direction - - one of the ScrollAdjister.INCREASE_SCROLL_DIRECTION, ScrollAdjister.DECREASE_SCROLL_DIRECTION, ScrollAdjister.DO_NOT_TOUCH_SCROLL_DIRECTION values.
        orientation - one of the Adjustable.HORIZONTAL or Adjustable.VERTICAL values.
      • getClickPoint

        protected abstract Point getClickPoint​(ComponentOperator oper,
                                               int direction,
                                               int orientation)
        Defines a click point which needs to be used in order to increase/decrease scroller value.
        Parameters:
        oper - an operator.
        direction - - one of the ScrollAdjister.INCREASE_SCROLL_DIRECTION, ScrollAdjister.DECREASE_SCROLL_DIRECTION, ScrollAdjister.DO_NOT_TOUCH_SCROLL_DIRECTION values.
        orientation - one of the Adjustable.HORIZONTAL or Adjustable.VERTICAL values.
        Returns:
        a point to click.