Set default values for the pointerMove offset.
This allows callers to omit the x and y parameters when moving the pointer to
the center of the target, consistent with the old API.
@@ -503,14 +503,14 @@ class PointerSequence extends Sequence {
* {@linkplain ./webdriver.WebElement WebElement}.
*
* @param {{
- * x: number,
- * y: number,
+ * x: (number|undefined),
+ * y: (number|undefined),
* duration: (number|undefined),
* origin: (!Origin|!./webdriver.WebElement|undefined),
* }} options the move options.
* @return {!PointerSequence} a self reference.
*/
- pointerMove({x, y, duration = 100, origin = Origin.VIEWPORT}) {
+ pointerMove({x = 0, y = 0, duration = 100, origin = Origin.VIEWPORT}) {
this.actions_.push({
type: ActionType.POINTER_MOVE,
origin,
