Skip to content

Commit

Permalink
Deprecating pause action because it was not blessed, pause is conside…
Browse files Browse the repository at this point in the history
…red to be a bad design practice
  • Loading branch information
barancev committed Dec 22, 2013
1 parent 24b5064 commit a7d5312
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions java/client/src/org/openqa/selenium/interactions/Actions.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7d5312

Please sign in to comment.