Граф коммитов

207 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen fda7568661 Bug 1302503 - Allow quitApplication to be called without flags; r=automatedtester
MozReview-Commit-ID: 5ctSN5vZbSQ

--HG--
extra : rebase_source : d912430688e31836ba8397e372e95803c238deda
2016-09-13 19:20:39 +01:00
Eric Rahm 6a06f03938 Bug 1299587 - Handle if marionette tests can't focus mainFrame in tearDown. r=automatedtester
It's possible the mainFrame has already been closed in which case it can
become a dead wrapper. Just gracefully handle failure in this situation.
2016-09-01 13:30:24 -07:00
Andreas Tolfsen e3a3466f75 Bug 1244425 - Avoid CPOW when setting file array on <input type=file>; r=automatedtester
This removes the need to use a CPOW when sending keys to <input type=file>
elements.  It was previously not possible to constructo File objects in
privileged content space, but this now appears fixed.

MozReview-Commit-ID: 8XOVsDdypwC

--HG--
extra : rebase_source : 8d4329c4c6a64ac717fc5d54dc42c8eb136f5e7f
2016-08-30 12:46:01 +01:00
Andreas Tolfsen aa96362477 Bug 1280947 - Remove dead File object construction code; r=automatedtester
MozReview-Commit-ID: 2e2tikS8evx

--HG--
extra : rebase_source : 8f016f47ceed470017dc72adbc8a4c0b7e84433b
2016-08-25 14:15:21 +01:00
Shane Caraveo 9d48355314 Bug 1289549 fix test driver child counting, r=automatedtester
MozReview-Commit-ID: LU19WfwjoPN
2016-08-23 15:24:06 -07:00
David Burns 8ae5a3c2be Bug 1288863: Return platformName and browserVersion as lowercase r=ato
Currently Marionette returns directly from appInfo where the webdriver
specification mandates that we return lowercase for those. See
http://w3c.github.io/webdriver/webdriver-spec.html#capabilities

MozReview-Commit-ID: 4UrOcYRuREK

--HG--
extra : rebase_source : b47a4be6f4eb17e3bf9caf8542cc2f03582df946
2016-07-26 10:13:35 +01:00
Andreas Tolfsen 067bab944a Bug 1239552 - Disable frame script global scope; r=automatedtester
By default, frame scripts each have their own scope, so they can declare
global variables without causing conflicts with any other frame scripts.
The current code switches off that behaviour, meaning that the script's
scope is shared with any other frame scripts in the same frame.

This patch changes it so that each loaded frame script gets its own
scope.  This works around the problem that on Windows in officially
branded builds, IPC message handlers are registered twice causing a race
condition in the IPC communication between driver.js and listener.js.

This is not a solution for fixing the core of the problem.

MozReview-Commit-ID: Fcjmi7tq5eA

--HG--
extra : rebase_source : e60adf91a98bf9ca78392ca1da804d82a0d7b885
2016-07-26 13:35:01 +01:00
Andreas Tolfsen c6cfc1c7ad Bug 1287751 - Remove logging in GeckoDriver#startBrowser; r=automatedtester
MozReview-Commit-ID: K7ZV3BajNS8

--HG--
extra : rebase_source : 3076a5b4299453f450a06bed7f4f260c768515cc
2016-07-19 13:25:56 +01:00
Nelson J Morais 526a2c53b7 Bug 1282331 - Refactor GetActiveFrame to return WebElement r=automatedtester
MozReview-Commit-ID: 6LiBOXSEPtz

--HG--
extra : rebase_source : 7143f5b41e69146086218c015074370e317d2db5
2016-07-12 22:56:34 +01:00
Nelson João Morais 65b0fd2d1d Bug 1283959 - Add SetWindowSize to return new width and height to comply with WD Spec r=automatedtester
MozReview-Commit-ID: AGnJuLqyULY

--HG--
extra : rebase_source : a77d4f7ab84c023f78a1e927a155626add26af6c
2016-07-14 01:11:07 +01:00
David Burns 0377b85db7 Bug 1281915: Skip trying to remove a frame script if there no messageManager r=ato
When trying to load or unload FRAME_SCRIPT into a process we should check if we have
messageManager available to do the work or error accordingly.

MozReview-Commit-ID: 1xonnY34vI3

--HG--
extra : rebase_source : 61e681785c13e4096ca235e81f676552b9e1a629
2016-07-06 23:23:35 +01:00
Maja Frydrychowicz 07464f6507 Bug 787203 - Get Marionette working in Fennec; r=automatedtester
MozReview-Commit-ID: LAymLrmFBSC

--HG--
extra : rebase_source : 30bb2753c161f60eff7293e963fbe206449373b5
2016-06-30 17:03:41 -04:00
Andreas Tolfsen 933f373ea3 Bug 1283459 - Rename pacUrl to proxyAutoconfigUrl; r=automatedtester
In order to not have to manage compatibility in this area, we use the
field name proxyAutoconfigUrl that existing Selenium implementations use.

MozReview-Commit-ID: JRk6uvEbJQi

--HG--
extra : rebase_source : 637aa9eca8755b88d086e41f4a1038a246df22c8
2016-06-30 14:41:45 +01:00
Andreas Tolfsen 0754cd395f Bug 1282800 - Remove device capability from Marionette; r=automatedtester
MozReview-Commit-ID: 4ZlojpuwpUN

--HG--
extra : rebase_source : 94efba5f17f67d44a61d12f83231bbf66ebb44da
2016-06-28 15:26:49 +01:00
David Burns 72b6cf6661 Bug 1281397: Correct return types getElementProperty in marionette r=ato
This aligns the return types with the spec and corrects the return type to
what GeckoDriver expects.

MozReview-Commit-ID: 5A63NfpHKXC

--HG--
extra : rebase_source : f6df6893194e78792e541b9e9dd316e4d456af26
2016-06-24 09:25:03 +01:00
Henrik Skupin 2561726165 Bug 1281750 - Marionette should include current application process id in capabilities. r=automatedtester
MozReview-Commit-ID: L9tdmHfUZEY

--HG--
extra : rebase_source : d46b87e50500f2e5dc793b9aaf922f1be661a323
2016-06-23 12:36:02 +02:00
Andreas Tolfsen 13eaed447a Bug 1280645 - Remove debug logging statement in driver.js; r=automatedtester
MozReview-Commit-ID: 4MgUCESlLl5

--HG--
extra : rebase_source : 05b4cac621b89daab51f8e8f3efeffa030aaa6e6
2016-06-17 15:56:45 +01:00
Wes Kocher 5c26bde4f0 Merge inbound to central, a=merge CLOSED TREE 2016-06-21 10:05:54 -07:00
Wes Kocher 2488f506e6 Backed out 2 changesets (bug 1277090) for breaking Firefox ui tests CLOSED TREE
Backed out changeset 4517cfdd7f79 (bug 1277090)
Backed out changeset 7be72cdc9d78 (bug 1277090)
2016-06-21 09:03:49 -07:00
Andreas Tolfsen de6084520f Bug 1280101 - Remove check for window sizes larger than screen; r=automatedtester
MozReview-Commit-ID: K2l0pPfGbGp

--HG--
extra : rebase_source : 943524c2a4e1dd990fa9cfddcc99cc7074ec1922
2016-06-14 18:58:15 +01:00
Andreas Tolfsen b196cce6f4 Bug 1280101 - Do not coerce window dimensions to integer; r=automatedtester
The specification says nothing about coercing to integer.

MozReview-Commit-ID: Cq5Wbo2vIAD

--HG--
extra : rebase_source : 4b953dfd48bd2227508e725dcc0cc5efc97f0bb9
2016-06-14 18:57:02 +01:00
David Burns 186ffe49b4 Bug 1277090: Have Marionette return only attributes from getElementAttribute. r=ato
Using the Selenium atom we are conflating properties and attributes which is not
thing we really want to be doing.

MozReview-Commit-ID: HdZOz1jQrwz

--HG--
extra : rebase_source : 70118dba39bb1a72e78a264d2a71beff3671f9cb
2016-05-31 23:23:05 +01:00
David Burns 7f050b49f0 Bug 1277083: Have getElementProperty return element properties in chrome. r=jgriffin
This removes the UnknowOperationError that was being thrown and returns the
property on the element that has been requested.

MozReview-Commit-ID: 2WCnBfdmit5

--HG--
extra : rebase_source : 92549bc482b3cf383bef35efa3ad10b3bcb0153e
2016-05-31 23:08:42 +01:00
David Burns 0f8322eef6 Bug 960931: Throw SessionNotCreatedError when requesting 2nd Active Session r=ato
If we have a session we are expected to return a SessionNotCreatedError as part
of step 2 of http://w3c.github.io/webdriver/webdriver-spec.html#new-session

MozReview-Commit-ID: AVmQ4Kmuczm

--HG--
extra : rebase_source : 9dfe22189bf8ac22ff2eee3df395392acedb1557
2016-05-25 15:04:40 +01:00
Tim Huang 8ec727cd19 Bug 1267910 - Part 2: Update all existing functions of add() and getCookiesFromHost() to make them origin attributes aware. r=jdm, r=mratcliffe
--HG--
extra : rebase_source : 288c9cab8340c5cc06861d4f2c7ee43ae4de608e
2016-05-25 11:54:21 +08:00
Andreas Tolfsen 6686a00fd4 Bug 1274274 - Rename element manager; r=automatedtester
Renames instances of `elementManager' to `seenEls' for brevity.  Also the
word "manager" does not really explain what purpose it fulfills.

MozReview-Commit-ID: 4EUN9utPoZS

--HG--
extra : rebase_source : 52bda0d83c50ffb96e72145ee54827c115596462
2016-05-20 16:49:19 +01:00
Andreas Tolfsen fb76d98e20 Bug 1274274 - Disassociate wrapValue from element store; r=automatedtester
Moves ElementManager#wrapValue to the testing/marionette/element.js
module level and renames it to toJson.

MozReview-Commit-ID: GJBl2L1GRxZ

--HG--
extra : rebase_source : 5fc81a6b0ebfbd6a12557b3b746e6968c235d674
2016-05-20 16:32:31 +01:00
Andreas Tolfsen 76e7173ffa Bug 1274274 - Disassociate convertWrappedArguments from element store; r=automatedtester
Moved ElementManager#convertWrappedArguments to the
testing/marionette/element.js module scope and renamed it to fromJson.

MozReview-Commit-ID: JMTZcG0JSUE

--HG--
extra : rebase_source : 613faca6a8c81b1ff435c538b0a7347ae548c288
2016-05-20 16:16:56 +01:00
Andreas Tolfsen 0f872f6301 Bug 1274274 - Refactor seen element store; r=automatedtester
Renames ElementManager to element.Store, exposing it on the
testing/marionette/element.js module.  Shortens getKnownElement(uuid)
to get(uuid).  Introduces new method has(uuid) to replace some unnecessary
checks in testing/marionette/driver.js and testing/marionette/listener.js.

MozReview-Commit-ID: D5qAlqrIxi

--HG--
extra : rebase_source : 22fda922e4c5f7bfcd1a5bcbcec6ae1003411535
2016-05-20 15:07:21 +01:00
Andreas Tolfsen c47354a3ef Bug 1274274 - Decouple element retrieval methods; r=automatedtester
Moves element retrieval methods from ElementManager to the
testing/marionette/element.js module itself.  This means some more
work needs to be done by the caller, but avoids bloat by ensuring
ElementManager does not end up as a super-object.

MozReview-Commit-ID: 5LGe0vpSWwS

--HG--
extra : rebase_source : d7f4bd64cd1a92ad20a33496708d3f0136531d9f
2016-05-20 13:28:27 +01:00
David Burns 20c4d3ef26 Bug 1274408: Remove emulator support from Marionette in Gecko r=ato
The emulator code was originally hacks to allow us to instrument the emulator
from JavaScript in the B2G world. Since we no longer support this it is being
removed.

MozReview-Commit-ID: 3XDk21SFfUc

--HG--
extra : rebase_source : 63bc081c3ab37894b97b873fe142ee068b609318
2016-05-24 10:22:54 +01:00
Andreas Tolfsen adc408c1da Bug 1272653 - Implement WebDriver command Get Element Property; r=jgriffin
MozReview-Commit-ID: 5lfZkSYPthb
2016-05-24 10:34:17 +01:00
Andreas Tolfsen b6a9cf2e30 Bug 1274638 - Store weak refs to windows outside of element store; r=automatedtester
Windows do not naturally belong in the seen element store, and it is
not naturally related to the scope as that of a browser.

MozReview-Commit-ID: JbQh5kDLDw

--HG--
extra : rebase_source : 075826f59a4fffc15dbbfa869eeb04b117a136da
2016-05-23 10:21:15 +01:00
Andreas Tolfsen 82050c610c Bug 1275043 - Return "no such window" error when listener cannot be reached; r=automatedtester
This is a stopgap solution to work with wdspec tests.  The proper solution
is to follow the steps as laid out by the specification with regards to
when existence of the current browsing context (i.e. listener) should
take place.

MozReview-Commit-ID: 5co9mfPmHir

--HG--
extra : rebase_source : c2ce333fa3ae40830934aa8f4f20873555534cab
2016-05-23 17:55:03 +01:00
Johan Lorenzo 47a1d0c413 Bug 1274924 - GeckoDriver.getTextFromDialog() throws "TypeError: can't convert null to object" r=automatedtester
MozReview-Commit-ID: G5p7gKjMYr7

--HG--
extra : rebase_source : 5784d1303e3f0df0177d6a03ccfae6a1e6936b2f
2016-05-23 12:16:04 +02:00
Wes Kocher 2596f34110 Backed out 3 changesets (bug 1267910) for reports of it breaking session restore a=backout
Backed out changeset 5962f8e6d030 (bug 1267910)
Backed out changeset f8afc5cf9e0e (bug 1267910)
Backed out changeset cc202e0ac0dd (bug 1267910)
2016-05-20 21:15:17 -07:00
Tim Huang ad550d017f Bug 1267910 - Part 2: Update all existing functions of add() and getCookiesFromHost() to make them origin attributes aware. r=jdm, r=mratcliffe
--HG--
extra : rebase_source : 3d8b306dfa83363c01c4db5d018c55fddf6d1595
2016-05-18 20:42:00 -04:00
Andreas Tolfsen 79f1a7b3bc Bug 1271636 - Clarify language in error for GeckoDriver#setWindowSize; r=automatedtester
MozReview-Commit-ID: 6YhiDKdtFcT

--HG--
extra : rebase_source : 1fa4dfc5002b0d0ba48ea302a7d8e8d514f1e4c1
2016-05-18 11:35:20 +01:00
Andreas Tolfsen fd683c7b4d Bug 1272639 - Remove debug logging; r=jgriffin
MozReview-Commit-ID: 95bQjH6FNnD

--HG--
extra : rebase_source : 0e7039ccb7d02636effdf1850ea162335a979734
2016-05-13 13:12:46 +01:00
Wes Kocher 40d9453396 Backed out changeset 8e610eb88dc7 (bug 1271636) for marionette failures in test_set_window_size.py 2016-05-11 12:11:01 -07:00
Andreas Tolfsen 4cae01d704 Bug 945734 - Correct argument error in GeckoDriver#setScreenOrientation; r=automatedtester
MozReview-Commit-ID: 4G2GyeFJBJP

--HG--
extra : rebase_source : 2d8202085257de5e12157166991d064c5ee4ee5d
2016-05-10 14:31:04 +01:00
Andreas Tolfsen 1e71042e63 Bug 1271636 - Clarify language in error for GeckoDriver#setWindowSize; r=automatedtester
MozReview-Commit-ID: 5tz1bXQiBj4

--HG--
extra : rebase_source : b1a29c63dd0b0ca668fd6c1c1faa505b211171e3
2016-05-10 14:34:23 +01:00
Andreas Tolfsen 86048a7b26 Bug 1271616 - Make BrowserObj into a module; r=automatedtester
No changes to the functionality of BrowserObj whatsoever.

MozReview-Commit-ID: JGg7eqil0qd

--HG--
extra : rebase_source : 89e2f535ec9ae17c9174e996445006e0a77111fe
2016-05-10 13:29:21 +01:00
Tim Huang 7d71e717c7 Bug 1270423 - Fix the nsICookieManager.remove() to reference originAttributes correctly at release build. r=ehsan 2016-05-05 09:12:00 +02:00
Andreas Tolfsen 1d15796afc Bug 1123506 - Evaluate scripts in content with lasting side-effects; r=automatedtester
In order to achieve WebDriver parity, Marionette needs the ability to
evaluate scripts in content space with lasting side-effects.  This means
that state modifications should affect behaviour and state of the browsing
context, and such transgress the boundaries of the sandbox.

This patch brings a new script evaluation module that is shared between
code in chrome- and content space.  This brings the number of unique
script evaluation implementations in Marionette down from six to one.

evaluate.sandbox provides the main entry-point for execution.  It is
compatible with existing Marionette uses of Execute Script and Execute
Async Script commands in Mozilla clients, but also provides a new stateful
sandbox for evaluation that should have lasting side-effects.

It is not expected that Mozilla clients, such as testing/marionette/client
and the Node.js client in Gaia, should have to change as a consequence
of this change.

A substantial change to the script's runtime environment is that many
globals that previously existed are now only exposed whenever needed.
This means for example that Simple Test harness functionality (waitFor,
ok, isnot, is, &c.) is only available when using a sandbox augmented
with a Simple Test harness adapter.

Conversely, this patch does not expose marionetteScriptFinished as a
callback to asynchronous scripts for sandboxes which sandboxName parameter
is undefined, because this is what determines if the script should be
evaluated under WebDriver conformance constraints.  In all other cases
where sandboxName _is_ defined, the traditional marionetteScriptFinished
et al. runtime environment is preserved.

MozReview-Commit-ID: 8FZ6rNVImuC
2016-05-09 16:08:17 +01:00
David Burns 6420fa4705 Bug 1258316 - Have marionette call maximize() on window instead of resize r=ato
This allows use to be able restore the window size if we wanted to.

MozReview-Commit-ID: Kx3JH1UroI2

--HG--
extra : rebase_source : 1b41e6b488eee2b4cbbea1104323b5807890b368
2016-05-06 21:15:13 +01:00
Wes Kocher 6586a41d87 Backed out changeset 08754cfc737c (bug 1123506) for various test bustage due to ` JavascriptException: JavascriptException: ReferenceError: __marionetteParams is not defined` CLOSED TREE 2016-05-06 15:12:14 -07:00
Andreas Tolfsen 2b77034fa3 Bug 1123506 - Evaluate scripts in content with lasting side-effects; r=automatedtester
In order to achieve WebDriver parity, Marionette needs the ability to
evaluate scripts in content space with lasting side-effects.  This means
that state modifications should affect behaviour and state of the browsing
context, and such transgress the boundaries of the sandbox.

This patch brings a new script evaluation module that is shared between
code in chrome- and content space.  This brings the number of unique
script evaluation implementations in Marionette down from six to one.

evaluate.sandbox provides the main entry-point for execution.  It is
compatible with existing Marionette uses of Execute Script and Execute
Async Script commands in Mozilla clients, but also provides a new stateful
sandbox for evaluation that should have lasting side-effects.

It is not expected that Mozilla clients, such as testing/marionette/client
and the Node.js client in Gaia, should have to change as a consequence
of this change.

A substantial change to the script's runtime environment is that many
globals that previously existed are now only exposed whenever needed.
This means for example that Simple Test harness functionality (waitFor,
ok, isnot, is, &c.) is only available when using a sandbox augmented
with a Simple Test harness adapter.

Conversely, this patch does not expose marionetteScriptFinished as a
callback to asynchronous scripts for sandboxes which sandboxName parameter
is undefined, because this is what determines if the script should be
evaluated under WebDriver conformance constraints.  In all other cases
where sandboxName _is_ defined, the traditional marionetteScriptFinished
et al. runtime environment is preserved.

MozReview-Commit-ID: 8FZ6rNVImuC

--HG--
extra : rebase_source : 38cc7b1e374fd42afb213133fd1a5e11bf8bdd95
2016-02-26 14:36:39 +00:00
David Burns a1f95963a9 Bug 965308: Remove b2g capability returned on startup r=ato
This removes a hack that was left behind so to not break eideticker
and mochitests on b2g.

MozReview-Commit-ID: 3n02qaAIPyp

--HG--
extra : rebase_source : 5e81c5ee42e152681f7306185c49f4b4628ac9b6
2016-05-06 00:02:04 +01:00
Kim Brown 3d3fc8c2d4 Bug 905650 - Added ability to get the hash of a screenshot; r=ato
MozReview-Commit-ID: 3NL7nkqpG6I

--HG--
extra : rebase_source : 1126849b99aaa622c402d350bc6d67ac192e4b7a
2016-04-17 21:37:14 -04:00