Bug 1346775 - Fix webdriver client pointerMove action type, r=ato draft
authorJames Graham <james@hoppipolla.co.uk>
Wed, 08 Mar 2017 17:16:33 +0000
changeset 497536 0f3c28bccc38250d611082c04a157318f1af338c
parent 497535 e1906968685c55c8defaaf4cf5bbbb553fc80b9e
child 497538 585fb13db1d0ecb7bd1f45c625c8ca70115308b5
push id48934
push userbmo:james@hoppipolla.co.uk
push dateMon, 13 Mar 2017 13:57:53 +0000
reviewersato
bugs1346775
milestone55.0a1
Bug 1346775 - Fix webdriver client pointerMove action type, r=ato MozReview-Commit-ID: 7hDfklJCFiT
testing/web-platform/tests/tools/webdriver/webdriver/client.py
--- 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)