diff --git a/java/client/src/org/openqa/selenium/interactions/Actions.java b/java/client/src/org/openqa/selenium/interactions/Actions.java index 7ec1feab0e0f2..ff08f1e66da01 100644 --- a/java/client/src/org/openqa/selenium/interactions/Actions.java +++ b/java/client/src/org/openqa/selenium/interactions/Actions.java @@ -338,7 +338,10 @@ public Actions dragAndDropBy(WebElement source, int xOffset, int yOffset) { * * @param pause pause duration, in milliseconds. * @return A self reference. + * + * @deprecated 'Pause' is considered to be a bad design practice. */ + @Deprecated public Actions pause(long pause) { action.addAction(new PauseAction(pause)); return this; diff --git a/java/client/src/org/openqa/selenium/interactions/PauseAction.java b/java/client/src/org/openqa/selenium/interactions/PauseAction.java index 1d2aa1bdd9aee..87dc249264c56 100644 --- a/java/client/src/org/openqa/selenium/interactions/PauseAction.java +++ b/java/client/src/org/openqa/selenium/interactions/PauseAction.java @@ -18,8 +18,10 @@ /** * Takes a pause. - * + * + * @deprecated 'Pause' is considered to be a bad design practice. */ +@Deprecated public class PauseAction implements Action { private final long pause;