We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45f0478 commit bdc5c5fCopy full SHA for bdc5c5f
java/client/src/org/openqa/selenium/interactions/SendKeysAction.java
@@ -24,6 +24,7 @@
24
import org.openqa.selenium.interactions.internal.Locatable;
25
26
import java.util.List;
27
+import java.util.Objects;
28
29
/**
30
* Sending a sequence of keys to an element.
@@ -40,6 +41,10 @@ public SendKeysAction(
40
41
Locatable locationProvider,
42
CharSequence... keysToSend) {
43
super(keyboard, mouse, locationProvider);
44
+
45
+ if (keysToSend == null) {
46
+ throw new IllegalArgumentException("Keys should be a not null CharSequence");
47
+ }
48
this.keysToSend = keysToSend;
49
}
50
0 commit comments