@Component public class MouseMovementUtilsImpl extends java.lang.Object implements MouseMovementUtils
Constructor and Description |
---|
MouseMovementUtilsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
mouseGlide(int x2,
int y2,
int time,
int steps)
Move the mouse from the current position to the new position
|
void |
mouseGlide(int x1,
int y1,
int x2,
int y2,
int time,
int steps) |
void |
mouseGlide(@NotNull org.openqa.selenium.WebDriver driver,
@NotNull org.openqa.selenium.JavascriptExecutor javascriptExecutor,
@NotNull org.openqa.selenium.WebElement element,
int time,
int steps)
Move the mouse from the current position to the new position
|
public void mouseGlide(int x1, int y1, int x2, int y2, int time, int steps)
mouseGlide
in interface MouseMovementUtils
x1
- Start xy1
- Start yx2
- End xy2
- End ytime
- The amount of time to takesteps
- The number of steps to usepublic void mouseGlide(int x2, int y2, int time, int steps)
MouseMovementUtils
mouseGlide
in interface MouseMovementUtils
x2
- End xy2
- End ytime
- The amount of time to takesteps
- The number of steps to usepublic void mouseGlide(@NotNull @NotNull org.openqa.selenium.WebDriver driver, @NotNull @NotNull org.openqa.selenium.JavascriptExecutor javascriptExecutor, @NotNull @NotNull org.openqa.selenium.WebElement element, int time, int steps)
MouseMovementUtils
mouseGlide
in interface MouseMovementUtils
driver
- The WebDriver instancejavascriptExecutor
- The selenium javascript executorelement
- the element to move the mouse totime
- The amount of time to takesteps
- The number of steps to use