Skip to content

Commit e561ca8

Browse files
committed
Deprecate the JSON Wire Protocol Action primitives
We may need to leave these post a 4.x release, but they'll be removed at some point.
1 parent 16feae5 commit e561ca8

19 files changed

+25
-0
lines changed

java/client/src/org/openqa/selenium/interactions/HasInputDevices.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/**
2222
* Interface implemented by each driver that allows access to the raw input devices.
2323
*/
24+
@Deprecated
2425
public interface HasInputDevices {
2526
Keyboard getKeyboard();
2627

java/client/src/org/openqa/selenium/interactions/HasTouchScreen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
/**
2121
* Interface implemented by each driver that allows access to touch screen capabilities.
2222
*/
23+
@Deprecated
2324
public interface HasTouchScreen {
2425

2526
TouchScreen getTouch();

java/client/src/org/openqa/selenium/interactions/Keyboard.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
/**
2121
* Interface representing basic, low-level keyboard operations. It offers a set of low-level "do as
2222
* I say" commands to allow precise emulation of user input.
23+
*
24+
* @deprecated Use {@link Actions} and {@link KeyInput} instead.
2325
*/
26+
@Deprecated
2427
public interface Keyboard {
2528

2629
/**

java/client/src/org/openqa/selenium/interactions/Mouse.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919

2020
/**
2121
* Interface representing basic mouse operations.
22+
*
23+
* @deprecated Use {@link Actions} and the {@link PointerInput} instead.
2224
*/
25+
@Deprecated
2326
public interface Mouse {
2427
void click(Coordinates where);
2528

java/client/src/org/openqa/selenium/interactions/TouchScreen.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919

2020
/**
2121
* Interface representing basic touch screen operations.
22+
*
23+
* @deprecated Replaced by {@link Actions} and {@link PointerInput}.
2224
*/
25+
@Deprecated
2326
public interface TouchScreen {
2427

2528
/**

java/client/src/org/openqa/selenium/interactions/internal/BaseAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/**
2626
* Base class for all actions.
2727
*/
28+
@Deprecated
2829
public abstract class BaseAction {
2930
protected final Locatable where;
3031

java/client/src/org/openqa/selenium/interactions/internal/DisplayAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/**
2424
* This class represents an abstraction of devices that can execute an action within a display area.
2525
*/
26+
@Deprecated
2627
public abstract class DisplayAction extends BaseAction {
2728

2829
protected DisplayAction(Locatable locationProvider) {

java/client/src/org/openqa/selenium/interactions/internal/KeysRelatedAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
/**
3838
* Represents a general action related to keyboard input.
3939
*/
40+
@Deprecated
4041
public abstract class KeysRelatedAction extends BaseAction implements IsInteraction {
4142
protected final Keyboard keyboard;
4243
protected final Mouse mouse;

java/client/src/org/openqa/selenium/interactions/internal/MouseAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
/**
3636
* Base class for all mouse-related actions.
3737
*/
38+
@Deprecated
3839
public abstract class MouseAction extends BaseAction implements IsInteraction {
3940

4041
public enum Button {

java/client/src/org/openqa/selenium/interactions/internal/SingleKeyAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* Used both by KeyDownAction and KeyUpAction
2727
*
2828
*/
29+
@Deprecated
2930
public abstract class SingleKeyAction extends KeysRelatedAction {
3031
protected final Keys key;
3132
private static final Keys[] MODIFIER_KEYS = {Keys.SHIFT, Keys.CONTROL, Keys.ALT, Keys.META,

0 commit comments

Comments
 (0)