Rethrow interrupted exception in pause action
package org.openqa.selenium.interactions;
+import org.openqa.selenium.WebDriverException;
+
import java.time.Duration;
import java.util.Collections;
import java.util.List;
@@ -40,6 +42,8 @@ public void perform() {
try {
Thread.sleep(pause);
} catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new WebDriverException("Sleep was interrupted", e);
}
}
