gecko-dev/testing/marionette
James Graham 2994bec9c1 Bug 1363428 - Use an iterator for iterating windows, r=ato
MozReview-Commit-ID: FKsw9EST2H7
2017-06-24 12:03:10 +01:00
..
chrome
client Bug 1375259 - Fix FennecInstance.close() for removal of restart keyword. r=ato 2017-06-23 14:52:41 +02:00
components Bug 1368072 - Use idleDispatchToMainThread instead. r=ato 2017-06-22 11:14:11 +02:00
harness Backed out 6 changesets (bug 1223277) for causing Marionette test regressions. 2017-06-23 12:15:23 -04:00
prefs Bug 1355888 - Clarify that -marionette flag works cross platform; r=whimboo 2017-04-13 15:22:40 +01:00
puppeteer Bug 1219725 - Add a button for session restore to the tab bar. r=dao,Gijs,mikedeboer,whimboo ui-r=shorlander 2017-06-20 11:33:55 -07:00
README Bug 1355888 - Clarify that -marionette flag works cross platform; r=whimboo 2017-04-13 15:22:40 +01:00
accessibility.js Bug 1341493 - Wait for accessibility element if accessibility doc is busy. r=automatedtester 2017-06-15 14:53:14 -07:00
action.js Backed out changeset afcfa17be8ac (bug 1367430) for making bug 1365021 worse 2017-06-07 13:21:05 +02:00
addon.js
assert.js Bug 1371733 - Propagate error message of assert.object; r=whimboo 2017-06-12 18:02:39 +01:00
atom.js Bug 1351795 - part 2: Remove console.markTimeline. r=baku 2017-05-09 15:34:18 +08:00
browser.js Backed out 16 changesets (bug 1363428) for Wr failures a=backout CLOSED TREE 2017-06-23 14:13:27 -07:00
capture.js Bug 1363428 - Skip element highlighting if there are no highlights, r=ato 2017-06-24 12:03:10 +01:00
cert.js
cookie.js Bug 1371733 - Move cookie service to chrome space; r=whimboo 2017-06-12 18:05:22 +01:00
driver.js Bug 1363428 - Use an iterator for iterating windows, r=ato 2017-06-24 12:03:10 +01:00
element.js Bug 1363053 - Move element.fromJson/toJson to evaluate module r=maja_zf 2017-05-08 17:05:20 +01:00
error.js Bug 1373218 - Add invalid cookie domain error to status lookup; r=automatedtester 2017-06-15 13:36:47 +01:00
evaluate.js Bug 1368648: Remove importScript functionality from Marionette r=ato 2017-05-30 11:25:14 +01:00
event.js Bug 1179335: Remove unused Marionette mouse scroll functions; r=whimboo 2017-05-29 13:57:05 +01:00
frame.js Bug 1368648: Remove importScript functionality from Marionette r=ato 2017-05-30 11:25:14 +01:00
interaction.js Bug 1366188 - Part 1: Fix Marionette's DateTimeValue when dom.forms.datetime is enabled. r=ato 2017-05-30 23:37:00 +02:00
jar.mn Backed out 16 changesets (bug 1363428) for Wr failures a=backout CLOSED TREE 2017-06-23 14:13:27 -07:00
l10n.js
legacyaction.js Bug 1363053 - Move element.fromJson/toJson to evaluate module r=maja_zf 2017-05-08 17:05:20 +01:00
listener.js Backed out 16 changesets (bug 1363428) for Wr failures a=backout CLOSED TREE 2017-06-23 14:13:27 -07:00
mach_commands.py
mach_test_package_commands.py
marionette.eslintrc.js
message.js Bug 1337743 - More data validation checks for Marionette messages; r=whimboo 2017-02-09 18:22:09 +00:00
modal.js Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
moz.build Bug 1350887 - Include Marionette prefs amongst defaults; r=ted,whimboo 2017-03-29 18:25:55 +01:00
navigate.js Bug 1291320 - Refactor page load algorithm for listener framescript. r=ato,automatedtester 2017-03-28 21:41:38 +02:00
packets.js Bug 1356237 - Ship a copy of transport module in marionette. r=ato 2017-04-24 20:23:04 +02:00
proxy.js Backed out 6 changesets (bug 1223277) for causing Marionette test regressions. 2017-06-23 12:15:23 -04:00
server.js Bug 1364959 - Clean up Safe Browsing preferences in tests. r=dimi 2017-05-18 16:18:59 -07:00
session.js Bug 937659 - Fix deserializing of page load strategy. r=ato 2017-04-19 12:32:20 +02:00
stream-utils.js Bug 1356231 - Use toolkit EventEmitter.jsm instead of devtools module. r=mossop 2017-04-27 17:58:09 +02:00
test_action.js Bug 1347658: Allow negative integers for Marionette pointerMove. r=maja_zf 2017-03-15 22:28:10 +00:00
test_assert.js Bug 1371733 - Add tests for custom assertion errors; r=whimboo 2017-06-12 18:18:48 +01:00
test_cookie.js Bug 1371733 - Move cookie service to chrome space; r=whimboo 2017-06-12 18:05:22 +01:00
test_element.js
test_error.js Bug 1362992 - Wrap implementation errors as UnknownError r=automatedtester 2017-05-08 14:01:30 +01:00
test_message.js Bug 1362992 - Wrap implementation errors as UnknownError r=automatedtester 2017-05-08 14:01:30 +01:00
test_navigate.js Bug 1291320 - Refactor page load algorithm for listener framescript. r=ato,automatedtester 2017-03-28 21:41:38 +02:00
test_session.js Bug 1355471 - Test timeout field before value's typing; r=whimboo 2017-04-11 14:57:01 +01:00
test_wait.js Bug 1319237 - Lower timeout elapse evaluation count; r=me a=followup-to-prevent-back out 2017-02-13 12:02:01 -08:00
transport.js Bug 1372670 - part 4 - use nsIThreadManager::dispatchToMainThread more from JS; r=florian 2017-06-21 12:59:28 -04:00
unit.ini Bug 1371733 - Move cookie service to chrome space; r=whimboo 2017-06-12 18:05:22 +01:00
wait.js

README

Этот файл содержит неоднозначные символы Юникода!

Этот файл содержит неоднозначные символы Юникода, которые могут быть перепутаны с другими в текущей локали. Если это намеренно, можете спокойно проигнорировать это предупреждение. Используйте кнопку Экранировать, чтобы подсветить эти символы.

MARIONETTE

  Marionette is the remote protocol that lets OOP programs communicate
  with, instrument, and control Gecko.

DESCRIPTION

  Marionette is an automation driver for Mozillas Gecko engine.
  It can remotely control either the UI or the internal JavaScript of
  the Gecko platform, such as Firefox.  It can control both the chrome
  and the content document, giving a high level of control and ability to
  replicate user interaction.  In addition to performing actions on the
  browser, Marionette can also read properties and attributes of the DOM.

USAGE

  Marionette can be activated by passing the -marionette flag.  To start
  Firefox with the remote protocol turned on:

  	% firefox -marionette
  	…
  	1491228343089	Marionette	INFO	Listening on port 2828

  This binds to a TCP socket, over which CLIENTS can communicate with
  Marionette using the PROTOCOL.

PROTOCOL

  Marionette provides an asynchronous, parallel pipelining user-facing
  interface.  Message sequencing limits chances of payload race conditions
  and provides a uniform way in which payloads are serialised.

  Clients that deliver a blocking WebDriver interface are still expected
  to not send further command requests before the response from the last
  command has come back, but if they still happen to do so because of
  programming error, no harm will be done.  This guards against bugs
  such as https://bugzil.la/1207125.

  Schematic flow of messages:

  	             client      server
  	               |            |
  	    msgid=1    |----------->|
  	               |  command   |
  	               |            |
  	    msgid=2    |<-----------|
  	               |  command   |
  	               |            |
  	    msgid=2    |----------->|
  	               |  response  |
  	               |            |
  	    msgid=1    |<-----------|
  	               |  response  |
  	               |            |

  The protocol consists of a COMMAND message and the corresponding
  RESPONSE message.  A RESPONSE message must always be sent in reply to
  a COMMAND message.

  This means that the server implementation does not need to send the
  reply precisely in the order of the received commands: if it receives
  multiple messages, the server may even reply in random order.  It is
  therefore strongly adviced that clients take this into account when
  implementing the client end of this wire protocol.

  This is required for pipelining messages.  On the server side, some
  functions are fast, and some less so.  If the server must reply in
  order, the slow functions delay the other replies even if its execution
  is already completed.

COMMAND

  The request, or command message, is a four element JSON array as shown
  below, that may originate from either the client- or server remote ends:

  	[type, message ID, command, parameters]

  type
	Must be 0 (integer).  This indicates that the message is the
	COMMAND message.

  message ID
    A 32-bit unsigned integer.  This number is used as sequencing number
    that uniquely identifies a pair of COMMAND and RESPONSE messages.
    The other remote part will reply with a corresponding RESPONSE with
    the same message ID.

  command
    A string identifying the RPC method or command to execute.

  parameters
    An arbitrary JSON serialisable object.

RESPONSE

  The response message is also a four element array as shown below,
  and must always be sent after receiving a COMMAND:

  	[type, message ID, error, result]

  type
    Must be 1 (integer).  This indicates that the message is the RESPONSE
    message.

  message ID
    A 32-bit unsigned integer.  This corresponds to the COMMAND
    messages message ID.

  error
    If the command executed correctly, this field is null.  If the error
    occurre on the server-side, then this field is an ERROR object.

  result
    The result object associated with the COMMAND, if it executed
    correctly.  If an error occurred on the server-side, this field
    is null.

  The structure of the result entry can vary, but is documented
  individually for each command in ./driver.js.

ERROR OBJECTS

  An ERROR object is a serialisation of JavaScript error types, and is
  structured like this:

  	{
  		"error": "invalid session id",
  		"message": "No active session with ID 1234",
  		"stacktrace": ""
  	}

  All the fields of the error object are required, so the stacktrace and
  message fields may be empty strings.  The error field is on the other
  hand guaranteed to be one of the JSON error codes as laid out by the
  WebDriver standard:

  	https://w3c.github.io/webdriver/webdriver-spec.html#handling-errors

CLIENTS

  Clients may be implemented in any language that is capable of writing
  and receiving data over TCP socket.  A reference client is provided in
  tree (under ./client).  Clients may be implemented both synchronously
  and asynchronously, although the latter is impossible in protocol
  levels 2 and earlier due to the lack of message indexing.

DOCUMENTATION

  General introduction:

  	https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette

  Protocol definition:

	https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/Protocol

  Generated Python client API documentation:

  	https://marionette-client.readthedocs.org/

BUGS

  Server and Python client bugs are tracked in the Testing :: Marionette
  component in Bugzilla:

  	https://bugzilla.mozilla.org/buglist.cgi?product=Testing&component=Marionette

  geckodriver (found in ../geckodriver), the HTTP proxy for using W3C
  WebDriver-compatible clients with Marionette, tracks its bugs on GitHub:

  	https://github.com/mozilla/geckodriver/issues