Bug 1302707 - Remove Marionette.timeouts from client; r?automatedtester draft
authorAndreas Tolfsen <ato@mozilla.com>
Wed, 14 Sep 2016 18:11:22 +0100
changeset 418521 e2f9db49666d9f54e11f1ee527588525b319e5df
parent 418520 1cf0d038dd7a458bfd226f97d395b932ba2df4ba
child 418522 dfabb9bc607395348660e9b638fbd0f94db4af2b
push id30699
push userbmo:ato@mozilla.com
push dateWed, 28 Sep 2016 16:44:24 +0000
reviewersautomatedtester
bugs1302707
milestone52.0a1
Bug 1302707 - Remove Marionette.timeouts from client; r?automatedtester 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
@@ -1482,59 +1482,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")