--- a/testing/marionette/error.js
+++ b/testing/marionette/error.js
@@ -10,16 +10,17 @@ const ERRORS = new Set([
"ElementNotAccessibleError",
"ElementNotVisibleError",
"InsecureCertificateError",
"InvalidArgumentError",
"InvalidElementStateError",
"InvalidSelectorError",
"InvalidSessionIDError",
"JavaScriptError",
+ "MoveTargetOutOfBoundsError",
"NoAlertOpenError",
"NoSuchElementError",
"NoSuchFrameError",
"NoSuchWindowError",
"ScriptTimeoutError",
"SessionNotCreatedError",
"StaleElementReferenceError",
"TimeoutError",
@@ -296,16 +297,23 @@ class JavaScriptError extends WebDriverE
}
super(msg);
this.status = "javascript error";
this.stack = trace;
}
}
+class MoveTargetOutOfBoundsError extends WebDriverError {
+ constructor (message) {
+ super(message);
+ this.status = "move target out of bounds";
+ }
+}
+
class NoAlertOpenError extends WebDriverError {
constructor (message) {
super(message);
this.status = "no such alert";
}
}
class NoSuchElementError extends WebDriverError {
@@ -389,16 +397,17 @@ const STATUSES = new Map([
["element not accessible", ElementNotAccessibleError],
["element not visible", ElementNotVisibleError],
["insecure certificate", InsecureCertificateError],
["invalid argument", InvalidArgumentError],
["invalid element state", InvalidElementStateError],
["invalid selector", InvalidSelectorError],
["invalid session id", InvalidSessionIDError],
["javascript error", JavaScriptError],
+ ["move target out of bounds", MoveTargetOutOfBoundsError],
["no alert open", NoAlertOpenError],
["no such element", NoSuchElementError],
["no such frame", NoSuchFrameError],
["no such window", NoSuchWindowError],
["script timeout", ScriptTimeoutError],
["session not created", SessionNotCreatedError],
["stale element reference", StaleElementReferenceError],
["timeout", TimeoutError],