Bug 1302707 - Remove Marionette.timeouts from client. r=automatedtester, a=test-only
authorAndreas Tolfsen <ato@mozilla.com>
Wed, 14 Sep 2016 18:11:22 +0100
changeset 350514 9b2b1f7ed3861b543a24a9633db00cb8ca746fd3
parent 350513 65b9e6c2ebc15388b939ca00ecc1aeee89253e01
child 350515 69e835c163236edda500d16a272b755b2e0fe0ae
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester, test-only
bugs1302707
milestone50.0
Bug 1302707 - Remove Marionette.timeouts from client. r=automatedtester, a=test-only MozReview-Commit-ID: 55GvsFwLwDK
testing/marionette/client/marionette_driver/marionette.py
--- a/testing/marionette/client/marionette_driver/marionette.py
+++ b/testing/marionette/client/marionette_driver/marionette.py
@@ -1438,59 +1438,16 @@ class Marionette(object):
         In chrome context it will change the current `window`'s location
         to the supplied URL and wait until `document.readState` equals
         "complete" or the page timeout duration has elapsed.
 
         :param url: The URL to navigate to.
         """
         self._send_message("get", {"url": url})
 
-    def timeouts(self, timeout_type, ms):
-        """An interface for managing timeout behaviour of a Marionette
-        instance.
-
-        Setting timeouts specifies the type and amount of time the
-        Marionette instance should wait during requests.
-
-        There are three types of timeouts that can be set: implicit,
-        script and page load.
-
-        * An implicit  timeout specifies the amount of time a Marionette
-        instance should wait when searching for elements. Here, marionette
-        polls a page until an element is found or the timeout expires,
-        whichever occurs first. When searching for multiple elements,
-        the driver should poll the page until at least one element is
-        found or the timeout expires, at which point it should return
-        an empty list.
-
-        * A script timeout specifies the amount of time the Marionette
-        instance should wait after calling executeAsyncScript for the
-        callback to have executed before returning a timeout response.
-
-        * A page load timeout specifies the amount of time the Marionette
-        instance should wait for a page load operation to complete. If
-        this limit is exceeded, the Marionette instance will return a
-        "timeout" response status.
-
-        :param timeout_type: A string value specifying the timeout
-            type. This must be one of three types: 'implicit', 'script'
-            or 'page load'
-        :param ms: A number value specifying the timeout length in
-            milliseconds (ms)
-        """
-        timeout_types = (self.TIMEOUT_PAGE,
-                         self.TIMEOUT_SCRIPT,
-                         self.TIMEOUT_SEARCH,
-                         )
-        if timeout_type not in timeout_types:
-            raise ValueError("Unknown timeout type: {0} (should be one "
-                             "of {1})".format(timeout_type, timeout_types))
-        body = {"type": timeout_type, "ms": ms}
-        self._send_message("timeouts", body)
-
     def go_back(self):
         """Causes the browser to perform a back navigation."""
         self._send_message("goBack")
 
     def go_forward(self):
         """Causes the browser to perform a forward navigation."""
         self._send_message("goForward")