Ensure send keys action checks input
import org.openqa.selenium.interactions.internal.Locatable;
import java.util.List;
+import java.util.Objects;
/**
* Sending a sequence of keys to an element.
@@ -40,6 +41,10 @@ public SendKeysAction(
Locatable locationProvider,
CharSequence... keysToSend) {
super(keyboard, mouse, locationProvider);
+
+ if (keysToSend == null) {
+ throw new IllegalArgumentException("Keys should be a not null CharSequence");
+ }
this.keysToSend = keysToSend;
}
