Package com.github.loyada.jdollarx
Class Operations.DragAndDrop
- java.lang.Object
-
- com.github.loyada.jdollarx.Operations.DragAndDrop
-
- Enclosing class:
- Operations
public static class Operations.DragAndDrop extends Object
internal implementation not be instantiated directly - Action of drag-and-drop
-
-
Constructor Summary
Constructors Constructor Description DragAndDrop(org.openqa.selenium.WebDriver driver, Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
to(Path target)
drag and drop to the given element's locationvoid
to(Integer x, Integer y)
drag and drop to the given coordinates
-
-
-
Constructor Detail
-
DragAndDrop
public DragAndDrop(org.openqa.selenium.WebDriver driver, Path path)
-
-
Method Detail
-
to
public void to(Path target) throws Operations.OperationFailedException
drag and drop to the given element's location- Parameters:
target
- - the target(drop) element- Throws:
Operations.OperationFailedException
- operation failed. Typically includes the reason.
-
to
public void to(Integer x, Integer y) throws Operations.OperationFailedException
drag and drop to the given coordinates- Parameters:
x
- coordinatesy
- coordinates- Throws:
Operations.OperationFailedException
- operation failed. Typically includes the reason.
-
-