Class Drag
java.lang.Object
net.serenitybdd.screenplay.playwright.interactions.Drag
Drag an element to another element (drag and drop).
Sample usage:
actor.attemptsTo(
Drag.from("#source").to("#target"),
Drag.from(SOURCE_ELEMENT).to(TARGET_ELEMENT)
);
// Alternative fluent API using the/onto aliases
actor.attemptsTo(
Drag.the("#source").onto("#target"),
Drag.the(SOURCE_ELEMENT).onto(TARGET_ELEMENT)
);
-
Method Summary
Modifier and TypeMethodDescriptionstatic DragStart a drag operation from the specified selector.static DragStart a drag operation from the specified Target.net.serenitybdd.screenplay.PerformableComplete the drag operation by dropping onto the specified selector.net.serenitybdd.screenplay.PerformableComplete the drag operation by dropping onto the specified Target.static DragStart a drag operation from the specified selector.static DragStart a drag operation from the specified Target.net.serenitybdd.screenplay.PerformableComplete the drag operation by dropping onto the specified selector.net.serenitybdd.screenplay.PerformableComplete the drag operation by dropping onto the specified Target.
-
Method Details
-
from
Start a drag operation from the specified selector. -
from
Start a drag operation from the specified Target. -
the
Start a drag operation from the specified selector. Alias forfrom(String)providing alternative fluent API. -
the
Start a drag operation from the specified Target. Alias forfrom(Target)providing alternative fluent API. -
to
Complete the drag operation by dropping onto the specified selector. -
to
Complete the drag operation by dropping onto the specified Target. -
onto
Complete the drag operation by dropping onto the specified selector. Alias forto(String)providing alternative fluent API. -
onto
Complete the drag operation by dropping onto the specified Target. Alias forto(Target)providing alternative fluent API.
-