|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.arquillian.ajocado.actions.Drag
public class Drag
Provides item dragging capability to Selenium tests.
Methods can be call in following serie: start, mouseOut, move, enter, drop.
If we are calling preceding phase (e.g. move, when drag was already called), IllegalStateException is thrown.
If we are calling following phase (e.g. drop, when no action was called), all phases preceding requested phase will be done before requested phase can be done.
Nested Class Summary | |
---|---|
static class |
Drag.Phase
Enumeration of phases supported by this Drag object. |
Constructor Summary | |
---|---|
Drag(ElementLocator<?> itemToDrag,
ElementLocator<?> dropTarget)
Initiates Drag object, handled by given Selenium instance, instructing drag of itemToDrag to dropTarget object. |
Method Summary | |
---|---|
void |
drop()
Last phase of dragging. |
void |
enter()
Starts fourth phase of dragging. |
void |
mouseOut()
Starts second phase of dragging. |
void |
move()
Starts third phase of dragging. |
void |
setDragIndicator(ElementLocator<?> dragIndicator)
|
void |
setDropTarget(ElementLocator<?> dropTarget)
|
void |
setNumberOfSteps(int numberOfSteps)
|
void |
start()
Starts first phase of dragging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Drag(ElementLocator<?> itemToDrag, ElementLocator<?> dropTarget)
itemToDrag
- item to dragdropTarget
- target of item draggingMethod Detail |
---|
public void setDropTarget(ElementLocator<?> dropTarget)
public void setDragIndicator(ElementLocator<?> dragIndicator)
public void setNumberOfSteps(int numberOfSteps)
public void start()
public void mouseOut()
public void move()
public void enter()
public void drop()
|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |