Package core.helpers
Class ElementActionHelper
- java.lang.Object
-
- core.helpers.ElementActionHelper
-
public class ElementActionHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ElementActionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddoubleClickBy(EnhancedBy by)static voidhoverBy(EnhancedBy by, int index)hover over elementstatic voidhoverPoints(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);static voidinputTextByAction(EnhancedBy by, String text)static voidmoveToElement(EnhancedBy target, int index)move to element by using actionstatic voidmoveToElement(EnhancedBy target, int index, int xOffset, int yOffset)move to element by using action
-
-
-
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-
-
-