Bug 1346775 - Fix webdriver client pointerMove action type, r=ato
MozReview-Commit-ID: 7hDfklJCFiT
--- a/testing/web-platform/tests/tools/webdriver/webdriver/client.py
+++ b/testing/web-platform/tests/tools/webdriver/webdriver/client.py
@@ -130,19 +130,18 @@ class ActionSequence(object):
:param x: Destination x-axis coordinate of pointer in CSS pixels.
:param y: Destination y-axis coordinate of pointer in CSS pixels.
:param duration: Number of milliseconds over which to distribute the
move. If None, remote end defaults to 0.
:param origin: Origin of coordinates, either "viewport", "pointer" or
an Element. If None, remote end defaults to "viewport".
"""
- # TODO change to pointerMove once geckodriver > 0.14 is available on mozilla-central
action = {
- "type": "move",
+ "type": "pointerMove",
"x": x,
"y": y
}
if duration is not None:
action["duration"] = duration
if origin is not None:
action["origin"] = origin if isinstance(origin, basestring) else origin.json()
self._actions.append(action)