Package org.testfx.robot
Interface ScrollRobot
-
- All Known Implementing Classes:
ScrollRobotImpl
public interface ScrollRobot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidscroll(int amount)Scrolls vertically byamount(in terms of ticks of a mouse wheel).voidscroll(int positiveAmount, javafx.geometry.HorizontalDirection direction)Scrolls horizontally byamount(in terms of ticks of a mouse wheel) in given direction.voidscroll(int positiveAmount, javafx.geometry.VerticalDirection direction)Scrolls vertically byamount(in terms of ticks of a mouse wheel) in given direction.voidscrollDown(int positiveAmount)Scrolls down byamount(in terms of ticks of a wheel).voidscrollLeft(int positiveAmount)Scrolls left byamount(in terms of ticks of a wheel).voidscrollRight(int positiveAmount)Scrolls right byamount(in terms of ticks of a wheel).voidscrollUp(int positiveAmount)Scrolls up byamount(in terms of ticks of a mouse wheel).
-
-
-
Method Detail
-
scroll
void scroll(int amount)
Scrolls vertically byamount(in terms of ticks of a mouse wheel). Ifamountis positive we scroll up, if it's negative we scroll down.- Parameters:
amount- the number of scroll ticks to scroll
-
scroll
void scroll(int positiveAmount, javafx.geometry.VerticalDirection direction)Scrolls vertically byamount(in terms of ticks of a mouse wheel) in given direction.- Parameters:
positiveAmount- the number of scroll ticks to scroll verticallydirection- the vertical direction in which to scroll (up or down)
-
scrollUp
void scrollUp(int positiveAmount)
Scrolls up byamount(in terms of ticks of a mouse wheel).- Parameters:
positiveAmount- the number of scroll ticks to scroll up
-
scrollDown
void scrollDown(int positiveAmount)
Scrolls down byamount(in terms of ticks of a wheel).- Parameters:
positiveAmount- the number of scroll ticks to scroll down
-
scroll
void scroll(int positiveAmount, javafx.geometry.HorizontalDirection direction)Scrolls horizontally byamount(in terms of ticks of a mouse wheel) in given direction.- Parameters:
positiveAmount- the number of scroll ticks to scroll horizontallydirection- the horizontal direction in which to scroll (left or right)
-
scrollLeft
void scrollLeft(int positiveAmount)
Scrolls left byamount(in terms of ticks of a wheel).- Parameters:
positiveAmount- the number of scroll ticks to scroll left
-
scrollRight
void scrollRight(int positiveAmount)
Scrolls right byamount(in terms of ticks of a wheel).- Parameters:
positiveAmount- the number of scroll ticks to scroll right
-
-