Module org.testfx

Class ClickRobotImpl

    • Method Detail

      • clickOn

        public void clickOn​(javafx.scene.input.MouseButton... buttons)
        Description copied from interface: ClickRobot
        Clicks whatever is under the mouse.
        Specified by:
        clickOn in interface ClickRobot
        Parameters:
        buttons - the mouse buttons to click
      • clickOn

        public void clickOn​(PointQuery pointQuery,
                            Motion motion,
                            javafx.scene.input.MouseButton... buttons)
        Description copied from interface: ClickRobot
        Moves the mouse to the location specified by the given PointQuery.query() using the specified motion (see: Motion) and clicks whatever is under it.
        Specified by:
        clickOn in interface ClickRobot
        Parameters:
        pointQuery - the pointQuery that specifies the location to move the mouse to
        motion - the type of motion to use for movement
        buttons - the mouse buttons to click
      • doubleClickOn

        public void doubleClickOn​(javafx.scene.input.MouseButton... buttons)
        Description copied from interface: ClickRobot
        Double-clicks whatever is under the mouse.
        Specified by:
        doubleClickOn in interface ClickRobot
        Parameters:
        buttons - the mouse buttons to double-click
      • doubleClickOn

        public void doubleClickOn​(PointQuery pointQuery,
                                  Motion motion,
                                  javafx.scene.input.MouseButton... buttons)
        Description copied from interface: ClickRobot
        Moves the mouse to the location specified by the given PointQuery.query() using the specified motion (see: Motion and double-clicks whatever is under it.
        Specified by:
        doubleClickOn in interface ClickRobot
        Parameters:
        pointQuery - the pointQuery that specifies the location to move the mouse to
        motion - the type of motion to use for movement
        buttons - the mouse buttons to double-click