bug 1504478: marionette: use SingleTap and AcceptConnections in Python client; r=whimboo

The singleTap and acceptConnections commands are deprecated in
favour of, respectively, Marionette:SingleTap and
Marionette:AcceptConnections.

Differential Revision: https://phabricator.services.mozilla.com/D10835

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Tolfsen 2018-11-05 18:40:33 +00:00
Родитель 81e2f77dbd
Коммит d9e33fd0fd
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -102,7 +102,7 @@ class HTMLElement(object):
the centre of the element.
"""
body = {"id": self.id, "x": x, "y": y}
self.marionette._send_message("singleTap", body)
self.marionette._send_message("Marionette:SingleTap", body)
@property
def text(self):
@ -1196,7 +1196,7 @@ class Marionette(object):
# The process is still running, which means the shutdown
# request was not correct or the application ignored it.
# Allow Marionette to accept connections again.
self._send_message("acceptConnections", {"value": True})
self._send_message("Marionette:AcceptConnections", {"value": True})
message = "Process still running {}s after restart request"
reraise(exc, message.format(self.shutdown_timeout), tb)