Bug 1451727 - [marionette] Remove unused execute_js_script method.
MozReview-Commit-ID: 3tkQmmRZfbd
--- a/testing/marionette/client/marionette_driver/marionette.py
+++ b/testing/marionette/client/marionette_driver/marionette.py
@@ -1717,32 +1717,16 @@ class Marionette(object):
unwrapped = HTMLElement(self, value[key])
break
else:
unwrapped[key] = self._from_json(value[key])
else:
unwrapped = value
return unwrapped
- def execute_js_script(self, script, script_args=(), async=True,
- new_sandbox=True, script_timeout=None,
- inactivity_timeout=None, filename=None,
- sandbox='default'):
- args = self._to_json(script_args)
- body = {"script": script,
- "args": args,
- "async": async,
- "newSandbox": new_sandbox,
- "scriptTimeout": script_timeout,
- "inactivityTimeout": inactivity_timeout,
- "filename": filename,
- "line": None}
- rv = self._send_message("executeJSScript", body, key="value")
- return self._from_json(rv)
-
def execute_script(self, script, script_args=(), new_sandbox=True,
sandbox="default", script_timeout=None):
"""Executes a synchronous JavaScript script, and returns the
result (or None if the script does return a value).
The script is executed in the context set by the most recent
:func:`set_context` call, or to the CONTEXT_CONTENT context if
:func:`set_context` has not been called.