Package core.helpers

Class ElementActionHelper


  • public class ElementActionHelper
    extends Object
    • Constructor Detail

      • ElementActionHelper

        public ElementActionHelper()
    • Method Detail

      • hoverBy

        public static void hoverBy​(EnhancedBy by,
                                   int index)
        hover over element
        Parameters:
        by -
      • inputTextByAction

        public static void inputTextByAction​(EnhancedBy by,
                                             String text)
      • doubleClickBy

        public static void doubleClickBy​(EnhancedBy by)
      • hoverPoints

        public static void hoverPoints​(int x,
                                       int y)
        Hover on the x,y points Reset mouse position to 0,0 after hover action is complete with Helper.click.resetMouse(x, y);
        Parameters:
        x -
        y -
      • moveToElement

        public static void moveToElement​(EnhancedBy target,
                                         int index)
        move to element by using action
        Parameters:
        target -
        index -
      • moveToElement

        public static void moveToElement​(EnhancedBy target,
                                         int index,
                                         int xOffset,
                                         int yOffset)
        move to element by using action
        Parameters:
        target -
        index -