A
A
A-Fedorov2017-09-18 18:43:35
Java
A-Fedorov, 2017-09-18 18:43:35

How to organize event chain processing in java?

Tell me how to organize the processing of the event chain / pipeline, i.e. we create a .build set of events (movement, mouse and keyboard presses) and then build().perform() is executed.
Here is an example from Selenuim
Actions action = new Actions(getDriver());
action.moveToElement(
findElement(org.openqa.selenium.By.className("v-window-wrap")),
5, 5);
action.clickAndHold();
action.moveByOffset(xOffset, yOffset);
action.release();
action.build().perform();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily, 2017-09-21
@Applez

You can use the Chain of Responsibility pattern

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question