Use fallback actions if a deprecated constructor was used.
this.driver may be null if one of the deprecated Actions constructors was used.
@@ -627,6 +627,12 @@ private BuiltAction(WebDriver driver, Map<InputSource, Sequence> sequences, Acti
@Override
public void perform() {
+ if (driver == null) {
+ // One of the deprecated constructors was used. Fall back to the old way for now.
+ fallBack.perform();
+ return;
+ }
+
try {
((Interactive) driver).perform(sequences.values());
} catch (ClassCastException | UnsupportedCommandException e) {
